import { ComponentFixture, TestBed } from '@angular/core/testing';
+import { RouterTestingModule } from '@angular/router/testing';
import { configureTestBed } from '../../../testing/unit-test-helper';
import { NotFoundComponent } from './not-found.component';
let fixture: ComponentFixture<NotFoundComponent>;
configureTestBed({
- declarations: [NotFoundComponent]
+ declarations: [NotFoundComponent],
+ imports: [RouterTestingModule]
});
beforeEach(() => {