Skip to content

Commit

Permalink
Fix tests for the About and Not Found pages
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaffter committed Nov 1, 2023
1 parent 097dc32 commit 0c73018
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion libs/openchallenges/about/src/lib/about.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { HttpClientModule } from '@angular/common/http';
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { ConfigService } from '@sagebionetworks/openchallenges/config';
import { FooterComponent } from '@sagebionetworks/openchallenges/ui';
import { AboutComponent } from './about.component';
Expand All @@ -11,7 +12,7 @@ describe('AboutComponent', () => {

beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [HttpClientModule, FooterComponent],
imports: [HttpClientModule, RouterTestingModule, FooterComponent],
providers: [ConfigService],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
}).compileComponents();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { HttpClientModule } from '@angular/common/http';
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { ConfigService } from '@sagebionetworks/openchallenges/config';

import { NotFoundComponent } from './not-found.component';
Expand All @@ -11,7 +12,7 @@ describe('NotFoundComponent', () => {

beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [HttpClientModule, NotFoundComponent],
imports: [HttpClientModule, RouterTestingModule, NotFoundComponent],
providers: [ConfigService],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
}).compileComponents();
Expand Down

0 comments on commit 0c73018

Please sign in to comment.