File tree Expand file tree Collapse file tree
1-Authentication/2-sign-in-angular/SPA Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { Router } from '@angular/router' ;
1+ import { Router , RouterModule } from '@angular/router' ;
22import { ComponentFixture , TestBed } from '@angular/core/testing' ;
3- import { RouterTestingModule } from '@angular/router/testing' ;
3+ // import { RouterTestingModule } from '@angular/router/testing';
44
55import { MSAL_GUARD_CONFIG , MsalGuardConfiguration } from '@azure/msal-angular' ;
66import { InteractionType } from '@azure/msal-browser' ;
@@ -74,7 +74,7 @@ function setup() {
7474 TestBed . configureTestingModule ( {
7575 imports : [
7676 AppModule ,
77- RouterTestingModule ,
77+ RouterModule . forRoot ( [ ] ) ,
7878 ] ,
7979 providers : [
8080 {
Original file line number Diff line number Diff line change 1616 "experimentalDecorators" : true ,
1717 "moduleResolution" : " node" ,
1818 "importHelpers" : true ,
19- "target" : " es2020 " ,
20- "module" : " es2020 " ,
19+ "target" : " es2022 " ,
20+ "module" : " es2022 " ,
2121 "lib" : [
2222 " es2020" ,
2323 " dom"
You can’t perform that action at this time.
0 commit comments