mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
update test setup
This commit is contained in:
parent
3f5e8815c3
commit
f3c5ffb977
@ -1,5 +1,4 @@
|
||||
import {
|
||||
async,
|
||||
ComponentFixture,
|
||||
TestBed,
|
||||
fakeAsync,
|
||||
@ -31,7 +30,7 @@ describe('SearchComponent', () => {
|
||||
let alfrescoApi: AlfrescoApiService;
|
||||
let translate: TranslationService;
|
||||
|
||||
beforeEach(async(() => {
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [CoreModule.forRoot(), AppTestingModule, AppSearchResultsModule],
|
||||
providers: [
|
||||
@ -70,7 +69,7 @@ describe('SearchComponent', () => {
|
||||
spyOn(queryBuilder, 'update').and.stub();
|
||||
|
||||
fixture.detectChanges();
|
||||
}));
|
||||
});
|
||||
|
||||
it('should raise an error if search fails', fakeAsync(() => {
|
||||
spyOn(alfrescoApi.searchApi, 'search').and.returnValue(
|
||||
|
Loading…
x
Reference in New Issue
Block a user