Skip to content

Commit

Permalink
try to mock TranslateService correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
saschaszott authored Feb 22, 2024
1 parent 10da261 commit cd7872e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
mockDynamicFormValidationService
} from '../../../../../testing/dynamic-form-mock-services';
import { By } from '@angular/platform-browser';
import { TranslateService } from '@ngx-translate/core';
import { TranslateModule, TranslateService } from '@ngx-translate/core';
import { getMockTranslateService } from '../../../../../mocks/translate.service.mock';

export const DATE_TEST_GROUP = new UntypedFormGroup({
Expand Down Expand Up @@ -52,7 +52,8 @@ describe('DsDatePickerComponent test suite', () => {

TestBed.configureTestingModule({
imports: [
NgbModule
NgbModule,
TranslateModule.forRoot()
],
declarations: [
DsDatePickerComponent,
Expand Down

0 comments on commit cd7872e

Please sign in to comment.