Skip to content

Commit e69ca7d

Browse files
committed
Add router testing module on tutorials tests
1 parent ed662a5 commit e69ca7d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/app/tutorials/tutorials.component.spec.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
22

33
import { TutorialsComponent } from './tutorials.component';
4+
import { RouterTestingModule } from '@angular/router/testing';
45

56
describe('TutorialsComponent', () => {
67
let component: TutorialsComponent;
78
let fixture: ComponentFixture<TutorialsComponent>;
89

910
beforeEach(async(() => {
1011
TestBed.configureTestingModule({
11-
declarations: [ TutorialsComponent ]
12+
declarations: [ TutorialsComponent ],
13+
imports: [RouterTestingModule],
1214
})
1315
.compileComponents();
1416
}));

0 commit comments

Comments
 (0)