Skip to content

Commit

Permalink
fix: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Apr 14, 2020
1 parent 9b96d2a commit 167bd23
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,29 @@ import { async, TestBed } from '@angular/core/testing';
import { MatMenuModule } from '@angular/material/menu';
import { RouterTestingModule } from '@angular/router/testing';
import { AppComponent } from './app.component';
import {
TranslateFakeLoader,
TranslateLoader,
TranslateModule,
TranslateService,
TranslateStore,
} from '@ngx-translate/core';

describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
RouterTestingModule,
MatMenuModule
],
declarations: [
AppComponent
MatMenuModule,
TranslateModule.forRoot({
loader: {
provide: TranslateLoader,
useClass: TranslateFakeLoader,
},
}),
],
declarations: [AppComponent],
providers: [TranslateService, TranslateStore],
}).compileComponents();
}));

Expand Down

0 comments on commit 167bd23

Please sign in to comment.