mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
13 lines
407 B
TypeScript
13 lines
407 B
TypeScript
import { of as observableOf } from 'rxjs';
|
|
import { SearchService } from '../../core/shared/search/search.service';
|
|
|
|
export function getMockSearchService(): SearchService {
|
|
return jasmine.createSpyObj('searchService', {
|
|
search: '',
|
|
getEndpoint: observableOf('discover/search/objects'),
|
|
getSearchLink: '/mydspace',
|
|
getScopes: observableOf(['test-scope']),
|
|
setServiceOptions: {}
|
|
});
|
|
}
|