From 8937a38f149903b71878bf1e214ec5fac607ce5e Mon Sep 17 00:00:00 2001 From: Yanick Minder Date: Tue, 5 Nov 2024 09:38:33 +0100 Subject: [PATCH] fix action service tests --- .../app/services/objective-menu-actions.service.spec.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/services/objective-menu-actions.service.spec.ts b/frontend/src/app/services/objective-menu-actions.service.spec.ts index aef8e3b228..49c52b9fa1 100644 --- a/frontend/src/app/services/objective-menu-actions.service.spec.ts +++ b/frontend/src/app/services/objective-menu-actions.service.spec.ts @@ -1,12 +1,19 @@ import { TestBed } from '@angular/core/testing'; import { ObjectiveMenuActionsService } from './objective-menu-actions.service'; +import { TranslateModule, TranslateService } from '@ngx-translate/core'; +import { provideRouter } from '@angular/router'; +import { provideHttpClient } from '@angular/common/http'; +import { provideHttpClientTesting } from '@angular/common/http/testing'; describe('ObjectiveMenuActionsService', () => { let service: ObjectiveMenuActionsService; beforeEach(() => { - TestBed.configureTestingModule({}); + TestBed.configureTestingModule({ + imports: [TranslateModule.forRoot()], + providers: [TranslateService, provideRouter([]), provideHttpClient(), provideHttpClientTesting()], + }); service = TestBed.inject(ObjectiveMenuActionsService); });