Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
beforeEach(() => {
TestBed.configureTestingModule({
providers: [
CrudMetaGridDataComponent
],
imports: [
HttpModule,
TranslateModule.forRoot()
]
});
});
beforeEach(() => {
TestBed.configureTestingModule({
imports: [CustomersModule, RouterTestingModule, TranslateModule.forRoot()],
providers: [
APP_PROVIDERS,
{provide: XHRBackend, useClass: MockBackend},
{provide: ConfigService, useClass: ConfigServiceMock},
]
});
componentFixture.fixture = TestBed.createComponent(ContactsDeleteComponent);
componentFixture.instance = componentFixture.fixture.componentInstance;
componentFixture.element = componentFixture.fixture.nativeElement;
componentFixture.debugElement = componentFixture.fixture.debugElement;
});
beforeEach(() => {
TestBed.configureTestingModule({
providers: [
CrudMetaFormDataComponent
],
imports: [
HttpModule,
TranslateModule.forRoot()
]
});
});
beforeEach(() => {
TestBed.configureTestingModule({
imports: [TranslateModule.forRoot()],
providers: [NotificationsService, NotificationService]
});
});
beforeEach(() => {
TestBed.configureTestingModule({
imports: [
CustomersModule,
RouterTestingModule,
TranslateModule.forRoot()
],
providers: [{provide: XHRBackend, useClass: MockBackend}, APP_PROVIDERS]
});
componentFixture.fixture = TestBed.createComponent(CustomersViewComponent);
componentFixture.instance = componentFixture.fixture.componentInstance;
componentFixture.element = componentFixture.fixture.nativeElement;
componentFixture.debugElement = componentFixture.fixture.debugElement;
});
public static forRoot(): Array {
return [
{
ngModule: TranslationModule,
providers: [
{provide: MissingTranslationHandler, useClass: EducamaMissingTranslationHandler},
TranslationNotifierService
]
},
TranslateModule.forRoot({
provide: TranslateLoader,
useFactory: (createTranslateLoader),
deps: [Http]
})
];
}
}