1 import { ComponentFixture, TestBed } from '@angular/core/testing';
3 import { configureTestBed } from '../../../../../testing/unit-test-helper';
4 import { SsoNotFoundComponent } from './sso-not-found.component';
6 describe('SsoNotFoundComponent', () => {
7 let component: SsoNotFoundComponent;
8 let fixture: ComponentFixture<SsoNotFoundComponent>;
11 declarations: [SsoNotFoundComponent]
15 fixture = TestBed.createComponent(SsoNotFoundComponent);
16 component = fixture.componentInstance;
17 fixture.detectChanges();
20 it('should create', () => {
21 expect(component).toBeTruthy();
24 it('should render the correct logout url', () => {
25 const expectedUrl = `http://localhost/auth/saml2/slo`;
26 const logoutAnchor = fixture.debugElement.nativeElement.querySelector('.sso-logout');
28 expect(logoutAnchor.href).toEqual(expectedUrl);