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); });