diff --git a/src/app/components/background/background.component.spec.ts b/src/app/components/background/background.component.spec.ts index c7ae10a4..53021daf 100644 --- a/src/app/components/background/background.component.spec.ts +++ b/src/app/components/background/background.component.spec.ts @@ -1,6 +1,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; import { BackgroundComponent } from './background.component'; +import { RouterTestingModule } from '@angular/router/testing'; describe('BackgroundComponent', () => { let component: BackgroundComponent; @@ -8,7 +9,8 @@ describe('BackgroundComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ - declarations: [ BackgroundComponent ] + declarations: [ BackgroundComponent ], + imports: [RouterTestingModule] }) .compileComponents(); diff --git a/src/app/pages/participate/participate.component.spec.ts b/src/app/pages/participate/participate.component.spec.ts index 21150e1c..4f87ffae 100644 --- a/src/app/pages/participate/participate.component.spec.ts +++ b/src/app/pages/participate/participate.component.spec.ts @@ -1,6 +1,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ParticipateComponent } from './participate.component'; +import { RouterTestingModule } from '@angular/router/testing'; describe('ParticipateComponent', () => { let component: ParticipateComponent; @@ -8,7 +9,8 @@ describe('ParticipateComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ - declarations: [ ParticipateComponent ] + declarations: [ ParticipateComponent ], + imports: [ RouterTestingModule ] }) .compileComponents();