Skip to content

Commit

Permalink
fix: mock TranslateModule
Browse files Browse the repository at this point in the history
  • Loading branch information
manekinekko committed Mar 2, 2020
1 parent f1c473e commit 35b6cdc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/editor/editor.component.spec.ts
Expand Up @@ -7,7 +7,7 @@ import { WINDOW_PROVIDERS } from '@app/core/window.service';
import { NgxsModule } from '@ngxs/store';
import { EditorComponent } from './editor.component';
import { RouterTestingModule } from '@angular/router/testing';
import { TranslateModule } from '@ngx-translate/core';
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';

describe('EditorComponent', () => {
let fixture: ComponentFixture<EditorComponent>;
Expand All @@ -21,7 +21,9 @@ describe('EditorComponent', () => {
MatSnackBarModule,
NgxsModule.forRoot([UiState]),
RouterTestingModule.withRoutes([]),
TranslateModule.forRoot()
TranslateModule.forRoot({
loader: { provide: TranslateLoader, useValue: {} }
})
],
declarations: [EditorComponent],
providers: [WINDOW_PROVIDERS]
Expand Down

0 comments on commit 35b6cdc

Please sign in to comment.