Skip to content

Commit

Permalink
Adiciona modulo de rotas nos testes
Browse files Browse the repository at this point in the history
  • Loading branch information
geraldovictor committed Nov 11, 2023
1 parent 394953d commit ec6ad25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/app/components/background/background.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { BackgroundComponent } from './background.component';
import { RouterTestingModule } from '@angular/router/testing';

describe('BackgroundComponent', () => {
let component: BackgroundComponent;
let fixture: ComponentFixture<BackgroundComponent>;

beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ BackgroundComponent ]
declarations: [ BackgroundComponent ],
imports: [RouterTestingModule]
})
.compileComponents();

Expand Down
4 changes: 3 additions & 1 deletion src/app/pages/participate/participate.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { ParticipateComponent } from './participate.component';
import { RouterTestingModule } from '@angular/router/testing';

describe('ParticipateComponent', () => {
let component: ParticipateComponent;
let fixture: ComponentFixture<ParticipateComponent>;

beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ ParticipateComponent ]
declarations: [ ParticipateComponent ],
imports: [ RouterTestingModule ]
})
.compileComponents();

Expand Down

0 comments on commit ec6ad25

Please sign in to comment.