Skip to content

Commit d134e16

Browse files
committed
update tests
1 parent 52f6658 commit d134e16

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

3-Authorization-II/2-call-api-b2c/SPA/src/app/sample.spec.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Router } from '@angular/router';
22
import { ComponentFixture, TestBed } from '@angular/core/testing';
33
import { 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';
66
import { InteractionType } from '@azure/msal-browser';
77

88
import { 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

Comments
 (0)