xxxx.component.spec.ts に以下のような追記をすると良いかもしれません。
+ import { RouterTestingModule } from '@angular/router/testing'; beforeEach(async(() => { TestBed.configureTestingModule({ ... + imports: [RouterTestingModule] }) .compileComponents();
xxxx.component.spec.ts に以下のような追記をすると良いかもしれません。
+ import { RouterTestingModule } from '@angular/router/testing'; beforeEach(async(() => { TestBed.configureTestingModule({ ... + imports: [RouterTestingModule] }) .compileComponents();