Fix safe pipe in pages component tests.

This commit is contained in:
Spencer Ofwiti 2021-06-25 12:07:13 +03:00
parent 0343142a38
commit faa0758f95

View File

@ -1,6 +1,8 @@
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing';
import { PagesComponent } from '@pages/pages.component'; import { PagesComponent } from '@pages/pages.component';
import { SharedModule } from '@app/shared/shared.module';
import { RouterTestingModule } from '@angular/router/testing';
describe('PagesComponent', () => { describe('PagesComponent', () => {
let component: PagesComponent; let component: PagesComponent;
@ -8,6 +10,7 @@ describe('PagesComponent', () => {
beforeEach(async () => { beforeEach(async () => {
await TestBed.configureTestingModule({ await TestBed.configureTestingModule({
imports: [SharedModule, RouterTestingModule],
declarations: [PagesComponent], declarations: [PagesComponent],
}).compileComponents(); }).compileComponents();
}); });