From 152eb964f732c66602df957df640e13a52284a85 Mon Sep 17 00:00:00 2001 From: Bastian Jakobi Date: Wed, 8 Nov 2023 16:42:05 +0100 Subject: [PATCH] fix: add missing imports to tests --- .../lib/core/components/portal-header/header.component.spec.ts | 3 ++- .../portal-viewport/portal-viewport.component.spec.ts | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/portal-integration-angular/src/lib/core/components/portal-header/header.component.spec.ts b/libs/portal-integration-angular/src/lib/core/components/portal-header/header.component.spec.ts index 4c8d94ce..fa0b01ad 100644 --- a/libs/portal-integration-angular/src/lib/core/components/portal-header/header.component.spec.ts +++ b/libs/portal-integration-angular/src/lib/core/components/portal-header/header.component.spec.ts @@ -8,6 +8,7 @@ import { UserAvatarComponent } from '../user-avatar/user-avatar.component' import { ActivatedRoute, RouterModule } from '@angular/router' import { IfBreakpointDirective } from '../../directives/if-breakpoint.directive' import { TooltipModule } from 'primeng/tooltip' +import { TranslateTestingModule } from 'ngx-translate-testing' describe('HeaderComponent', () => { let component: HeaderComponent @@ -16,7 +17,7 @@ describe('HeaderComponent', () => { beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ declarations: [HeaderComponent, UserAvatarComponent, IfBreakpointDirective], - imports: [HttpClientTestingModule, RouterModule, TooltipModule], + imports: [HttpClientTestingModule, RouterModule, TooltipModule, TranslateTestingModule.withTranslations({}),], providers: [ { provide: AUTH_SERVICE, useClass: MockAuthService }, ConfigurationService, diff --git a/libs/portal-integration-angular/src/lib/core/components/portal-viewport/portal-viewport.component.spec.ts b/libs/portal-integration-angular/src/lib/core/components/portal-viewport/portal-viewport.component.spec.ts index 9e6caa3b..3392ca32 100644 --- a/libs/portal-integration-angular/src/lib/core/components/portal-viewport/portal-viewport.component.spec.ts +++ b/libs/portal-integration-angular/src/lib/core/components/portal-viewport/portal-viewport.component.spec.ts @@ -21,6 +21,7 @@ import { NoopAnimationsModule } from '@angular/platform-browser/animations' import { IfBreakpointDirective } from '../../directives/if-breakpoint.directive' import { FormsModule, ReactiveFormsModule } from '@angular/forms' import { TooltipModule } from 'primeng/tooltip' +import { TranslateTestingModule } from 'ngx-translate-testing' describe('PortalViewportComponent', () => { let component: PortalViewportComponent @@ -49,6 +50,7 @@ describe('PortalViewportComponent', () => { ReactiveFormsModule, RouterModule, TooltipModule, + TranslateTestingModule.withTranslations({}) ], providers: [ ConfigurationService,