+import { ActivatedRoute } from '@angular/router';
+
import { ReplaySubject } from 'rxjs';
/**
* An ActivateRoute test double with a `params` observable.
* Use the `setParams()` method to add the next `params` value.
*/
-export class ActivatedRouteStub {
+export class ActivatedRouteStub extends ActivatedRoute {
// Use a ReplaySubject to share previous values with subscribers
// and pump new values into the `params` observable
private subject = new ReplaySubject<object>();
constructor(initialParams?: object) {
+ super();
this.setParams(initialParams);
}