Fixed unit tests

This commit is contained in:
Giuseppe Digilio
2019-03-27 14:49:37 +01:00
parent 9b65189b4a
commit 39b98f7f1c
21 changed files with 143 additions and 87 deletions

View 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 */
};