tests for SearchConfigurationService

This commit is contained in:
lotte
2018-08-02 10:29:37 +02:00
parent 9ebd25709d
commit f04f5a1170
12 changed files with 212 additions and 143 deletions

View File

@@ -21,7 +21,10 @@ export class ActivatedRouteStub {
}
// Test parameters
get testParams() { return this._testParams; }
get testParams() {
return this._testParams;
}
set testParams(params: {}) {
this._testParams = params;
this.subject.next(params);
@@ -29,6 +32,9 @@ export class ActivatedRouteStub {
// ActivatedRoute.snapshot.params
get snapshot() {
return { params: this.testParams };
return {
params: this.testParams,
queryParamMap: convertToParamMap(this.testParams)
}
}
}