Files
dspace-angular/src/app/shared/testing/search-configuration-service.stub.ts
2020-03-18 16:03:40 +01:00

20 lines
469 B
TypeScript

import { BehaviorSubject, of as observableOf } from 'rxjs';
export class SearchConfigurationServiceStub {
private searchOptions: BehaviorSubject<any> = new BehaviorSubject<any>({});
private paginatedSearchOptions: BehaviorSubject<any> = new BehaviorSubject<any>({});
getCurrentFrontendFilters() {
return observableOf([]);
}
getCurrentScope(a) {
return observableOf('test-id');
}
getCurrentConfiguration(a) {
return observableOf(a);
}
}