diff --git a/apps/dafa-web/src/app/app.component.spec.ts b/apps/dafa-web/src/app/app.component.spec.ts
index ed9c441..20f7319 100644
--- a/apps/dafa-web/src/app/app.component.spec.ts
+++ b/apps/dafa-web/src/app/app.component.spec.ts
@@ -1,12 +1,14 @@
import { TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { AppComponent } from './app.component';
+import { NavigationModule } from './components/navigation/navigation.module';
+import { SkipToContentModule } from './components/skip-to-content/skip-to-content.module';
describe('AppComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [AppComponent],
- imports: [RouterTestingModule],
+ imports: [RouterTestingModule, SkipToContentModule, NavigationModule],
}).compileComponents();
});
diff --git a/apps/dafa-web/src/app/components/navigation/navigation.component.html b/apps/dafa-web/src/app/components/navigation/navigation.component.html
index ebc718f..71d99f4 100644
--- a/apps/dafa-web/src/app/components/navigation/navigation.component.html
+++ b/apps/dafa-web/src/app/components/navigation/navigation.component.html
@@ -1,8 +1,7 @@
diff --git a/apps/dafa-web/src/app/components/navigation/navigation.component.spec.ts b/apps/dafa-web/src/app/components/navigation/navigation.component.spec.ts
index 6b707df..278b0ce 100644
--- a/apps/dafa-web/src/app/components/navigation/navigation.component.spec.ts
+++ b/apps/dafa-web/src/app/components/navigation/navigation.component.spec.ts
@@ -1,4 +1,6 @@
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
+import { RouterTestingModule } from '@angular/router/testing';
+import { IconModule } from '@dafa-shared/components/icon/icon.module';
import { NavigationComponent } from './navigation.component';
describe('NavigationComponent', () => {
@@ -9,6 +11,7 @@ describe('NavigationComponent', () => {
waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [NavigationComponent],
+ imports: [RouterTestingModule, IconModule],
}).compileComponents();
})
);
diff --git a/apps/dafa-web/src/app/pages/page-not-found/page-not-found.component.spec.ts b/apps/dafa-web/src/app/pages/page-not-found/page-not-found.component.spec.ts
index fd91f6e..c9269de 100644
--- a/apps/dafa-web/src/app/pages/page-not-found/page-not-found.component.spec.ts
+++ b/apps/dafa-web/src/app/pages/page-not-found/page-not-found.component.spec.ts
@@ -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;
- beforeEach(waitForAsync(() => {
- TestBed.configureTestingModule({
- declarations: [ PageNotFoundComponent ]
+ beforeEach(
+ waitForAsync(() => {
+ TestBed.configureTestingModule({
+ declarations: [PageNotFoundComponent],
+ imports: [RouterTestingModule, DigiNgTypographyBaseModule, DigiNgIconArrowLeftModule, HorizontalCenterModule],
+ }).compileComponents();
})
- .compileComponents();
- }));
+ );
beforeEach(() => {
fixture = TestBed.createComponent(PageNotFoundComponent);
diff --git a/apps/dafa-web/src/app/pages/start/start.component.spec.ts b/apps/dafa-web/src/app/pages/start/start.component.spec.ts
index 19ff144..4fb2c2b 100644
--- a/apps/dafa-web/src/app/pages/start/start.component.spec.ts
+++ b/apps/dafa-web/src/app/pages/start/start.component.spec.ts
@@ -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;
- beforeEach(waitForAsync(() => {
- TestBed.configureTestingModule({
- declarations: [StartComponent],
- }).compileComponents();
- }));
+ beforeEach(
+ waitForAsync(() => {
+ TestBed.configureTestingModule({
+ declarations: [StartComponent],
+ imports: [RouterTestingModule, DigiNgTypographyBaseModule, HorizontalCenterModule],
+ }).compileComponents();
+ })
+ );
beforeEach(() => {
fixture = TestBed.createComponent(StartComponent);