Fixed some tests

This commit is contained in:
Erik Tiekstra
2021-03-17 07:26:46 +01:00
committed by Erik Tiekstra
parent d36e00c5a7
commit dd743fd638
5 changed files with 29 additions and 14 deletions
@@ -1,17 +1,22 @@
import { DigiNgIconArrowLeftModule } from '@af/digi-ng/_icon/icon-arrow-left';
import { DigiNgTypographyBaseModule } from '@af/digi-ng/_typography/typography-base';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { HorizontalCenterModule } from '@dafa-shared/components/horizontal-center/horizontal-center.module';
import { PageNotFoundComponent } from './page-not-found.component';
describe('PageNotFoundComponent', () => {
let component: PageNotFoundComponent;
let fixture: ComponentFixture<PageNotFoundComponent>;
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [ PageNotFoundComponent ]
beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [PageNotFoundComponent],
imports: [RouterTestingModule, DigiNgTypographyBaseModule, DigiNgIconArrowLeftModule, HorizontalCenterModule],
}).compileComponents();
})
.compileComponents();
}));
);
beforeEach(() => {
fixture = TestBed.createComponent(PageNotFoundComponent);
@@ -1,15 +1,21 @@
import { DigiNgTypographyBaseModule } from '@af/digi-ng/_typography/typography-base';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { HorizontalCenterModule } from '@dafa-shared/components/horizontal-center/horizontal-center.module';
import { StartComponent } from './start.component';
describe('StartComponent', () => {
let component: StartComponent;
let fixture: ComponentFixture<StartComponent>;
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [StartComponent],
}).compileComponents();
}));
beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [StartComponent],
imports: [RouterTestingModule, DigiNgTypographyBaseModule, HorizontalCenterModule],
}).compileComponents();
})
);
beforeEach(() => {
fixture = TestBed.createComponent(StartComponent);