@@ -2,7 +2,7 @@ import { Router } from '@angular/router';
22import { ComponentFixture , TestBed } from '@angular/core/testing' ;
33import { RouterTestingModule } from '@angular/router/testing' ;
44
5- import { MSAL_GUARD_CONFIG , MsalGuardConfiguration } from '@azure/msal-angular' ;
5+ import { MSAL_GUARD_CONFIG , MsalGuardConfiguration } from '@azure/msal-angular' ;
66import { InteractionType } from '@azure/msal-browser' ;
77
88import { msalConfig } from './auth-config' ;
@@ -57,7 +57,7 @@ describe('Ensure that the app starts', () => {
5757 it ( 'should not navigate to guarded component' , async ( ) => {
5858 const { router, run } = setup ( ) ;
5959
60- const canNavigate = await run ( ( ) => router . navigateByUrl ( '/guarded ' ) ) ;
60+ const canNavigate = await run ( ( ) => router . navigateByUrl ( '/todo-view ' ) ) ;
6161
6262 expect ( canNavigate ) . toBe ( false ) ;
6363 } ) ;
@@ -67,7 +67,7 @@ function setup() {
6767
6868 function MSALGuardConfigFactory ( ) : MsalGuardConfiguration {
6969 return {
70- interactionType : InteractionType . Popup ,
70+ interactionType : InteractionType . Redirect ,
7171 } ;
7272 }
7373
@@ -107,3 +107,5 @@ function setup() {
107107 fixture : TestBed . createComponent ( AppComponent )
108108 } ;
109109}
110+
111+
0 commit comments