Skip to content

Commit b69ab9f

Browse files
committed
Imported RouterTestingModule in AppComponent specs as per angular/angular-cli#3252
1 parent 27f67f3 commit b69ab9f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/app/app.component.spec.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
import { TestBed, async } from '@angular/core/testing';
2+
import { RouterTestingModule } from '@angular/router/testing';
23
import { AppComponent } from './app.component';
4+
35
describe('AppComponent', () => {
46
beforeEach(async(() => {
57
TestBed.configureTestingModule({
68
declarations: [
79
AppComponent
810
],
11+
imports: [
12+
RouterTestingModule
13+
]
914
}).compileComponents();
1015
}));
1116
it('should create the app', async(() => {

0 commit comments

Comments
 (0)