mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-19 07:53:02 +00:00
117648: Add tests for basic MenuProviders
This commit is contained in:
18
src/app/shared/testing/script-service.stub.ts
Normal file
18
src/app/shared/testing/script-service.stub.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* The contents of this file are subject to the license and copyright
|
||||
* detailed in the LICENSE and NOTICE files at the root of the source
|
||||
* tree and available online at
|
||||
*
|
||||
* http://www.dspace.org/license/
|
||||
*/
|
||||
|
||||
import { Observable, of as observableOf } from 'rxjs';
|
||||
|
||||
/**
|
||||
* Stub class of {@link ScriptDataService}.
|
||||
*/
|
||||
export class ScriptServiceStub {
|
||||
scriptWithNameExistsAndCanExecute(scriptName: string): Observable<boolean> {
|
||||
return observableOf(true);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user