mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 06:53:03 +00:00
Fixed unit tests
This commit is contained in:
26
src/app/shared/testing/route-service-stub.ts
Normal file
26
src/app/shared/testing/route-service-stub.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import { of as observableOf } from 'rxjs/internal/observable/of';
|
||||
|
||||
export const routeServiceStub: any = {
|
||||
/* tslint:disable:no-empty */
|
||||
hasQueryParamWithValue: (param: string, value: string) => {
|
||||
},
|
||||
hasQueryParam: (param: string) => {
|
||||
},
|
||||
removeQueryParameterValue: (param: string, value: string) => {
|
||||
},
|
||||
addQueryParameterValue: (param: string, value: string) => {
|
||||
},
|
||||
getQueryParameterValues: (param: string) => {
|
||||
return observableOf({});
|
||||
},
|
||||
getQueryParamsWithPrefix: (param: string) => {
|
||||
return observableOf({});
|
||||
},
|
||||
getQueryParamMap: () => {
|
||||
return observableOf(new Map())
|
||||
},
|
||||
getQueryParameterValue: () => {
|
||||
return observableOf({})
|
||||
}
|
||||
/* tslint:enable:no-empty */
|
||||
};
|
Reference in New Issue
Block a user