]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/src/testing/activated-route-stub.ts
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / testing / activated-route-stub.ts
index fafbf60b4c6dc082837654f92041a9c0bd8e6b8e..e217838600c47dc19664d78a31b4a81f59272fcf 100644 (file)
@@ -1,15 +1,18 @@
+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);
   }