mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
update test setup
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user