From ec6ad25f8df7fa4b19ab71ba98b882ccb4d00b1a Mon Sep 17 00:00:00 2001 From: geraldovictor Date: Sat, 11 Nov 2023 17:10:53 -0300 Subject: [PATCH] Adiciona modulo de rotas nos testes --- src/app/components/background/background.component.spec.ts | 4 +++- src/app/pages/participate/participate.component.spec.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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();