update test setup

This commit is contained in:
Denys Vuika
2019-04-25 11:30:46 +01:00
parent 3f5e8815c3
commit f3c5ffb977
@@ -1,5 +1,4 @@
import { import {
async,
ComponentFixture, ComponentFixture,
TestBed, TestBed,
fakeAsync, fakeAsync,
@@ -31,7 +30,7 @@ describe('SearchComponent', () => {
let alfrescoApi: AlfrescoApiService; let alfrescoApi: AlfrescoApiService;
let translate: TranslationService; let translate: TranslationService;
beforeEach(async(() => { beforeEach(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
imports: [CoreModule.forRoot(), AppTestingModule, AppSearchResultsModule], imports: [CoreModule.forRoot(), AppTestingModule, AppSearchResultsModule],
providers: [ providers: [
@@ -70,7 +69,7 @@ describe('SearchComponent', () => {
spyOn(queryBuilder, 'update').and.stub(); spyOn(queryBuilder, 'update').and.stub();
fixture.detectChanges(); fixture.detectChanges();
})); });
it('should raise an error if search fails', fakeAsync(() => { it('should raise an error if search fails', fakeAsync(() => {
spyOn(alfrescoApi.searchApi, 'search').and.returnValue( spyOn(alfrescoApi.searchApi, 'search').and.returnValue(