From 5ce1402f41bde21c8c0939f84443161e0061975c Mon Sep 17 00:00:00 2001 From: Angelika Kinas Date: Wed, 20 Dec 2023 14:11:11 +0100 Subject: [PATCH] feat(ui): Fix unit tests for MaxLinesComponent --- .../elements/src/lib/max-lines/max-lines.component.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/ui/elements/src/lib/max-lines/max-lines.component.spec.ts b/libs/ui/elements/src/lib/max-lines/max-lines.component.spec.ts index 00a857e1ff..dc28d6869c 100644 --- a/libs/ui/elements/src/lib/max-lines/max-lines.component.spec.ts +++ b/libs/ui/elements/src/lib/max-lines/max-lines.component.spec.ts @@ -1,7 +1,8 @@ import { ComponentFixture, TestBed } from '@angular/core/testing' import { MaxLinesComponent } from './max-lines.component' -import { Component } from '@angular/core' +import { Component, importProvidersFrom } from '@angular/core' +import { TranslateModule } from '@ngx-translate/core' @Component({ template: ` @@ -22,6 +23,8 @@ describe('MaxLinesComponent', () => { beforeEach(() => { TestBed.configureTestingModule({ + imports: [TranslateModule.forRoot()], + providers: [importProvidersFrom(TranslateModule.forRoot())], declarations: [MaxLinesComponent, TestHostComponent], }) fixture = TestBed.createComponent(TestHostComponent)