Skip to content

Commit

Permalink
Imported RouterTestingModule in AppComponent specs as per angular/ang…
Browse files Browse the repository at this point in the history
  • Loading branch information
amercier committed May 4, 2018
1 parent 661f175 commit c025bdd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import { TestBed, async } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { AppComponent } from './app.component';

describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
AppComponent
],
imports: [
RouterTestingModule
]
}).compileComponents();
}));
it('should create the app', async(() => {
Expand Down

0 comments on commit c025bdd

Please sign in to comment.