File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 11import { ComponentFixture , TestBed } from '@angular/core/testing' ;
22import { provideExperimentalZonelessChangeDetection } from '@angular/core' ;
33import { UserSpaceComponent } from './user-space.component' ;
4+ import { provideRouter } from '@angular/router' ;
5+ import { routes } from '../../app.routes' ;
46
57describe ( 'UserSpaceComponent' , ( ) => {
68 let component : UserSpaceComponent ;
@@ -9,9 +11,12 @@ describe('UserSpaceComponent', () => {
911 beforeEach ( async ( ) => {
1012 await TestBed . configureTestingModule ( {
1113 imports : [ UserSpaceComponent ] ,
12- providers : [ provideExperimentalZonelessChangeDetection ( ) ] ,
14+ providers : [
15+ provideExperimentalZonelessChangeDetection ( ) ,
16+ provideRouter ( routes ) ,
17+ ] ,
1318 } )
14- . compileComponents ( ) ;
19+ . compileComponents ( ) ;
1520
1621 fixture = TestBed . createComponent ( UserSpaceComponent ) ;
1722 component = fixture . componentInstance ;
You can’t perform that action at this time.
0 commit comments