src.app.testing.activated-route-stub.ts Maven / Gradle / Ivy
import { of } from 'rxjs';
import { convertToParamMap } from '@angular/router';
export class ActivatedRouteStub {
params = of({});
queryParams = of({});
snapshot = {
queryParamMap: {},
_lastPathIndex: 0
};
constructor() {
}
setParamMap(params?: Object) {
this.params = of(params);
this.queryParams = of(params);
}
setSnapshotQueryParamMap(params?: Object) {
this.snapshot.queryParamMap = convertToParamMap(params);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy