]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/services/module-status-guard.service.spec.ts
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / shared / services / module-status-guard.service.spec.ts
index f1fbcd38baba986f7dddfcd749f909c5d91d68e4..0948fc878a9e0eb77bed08c016ba60d06e2bcc29 100644 (file)
@@ -6,7 +6,7 @@ import { RouterTestingModule } from '@angular/router/testing';
 
 import { of as observableOf } from 'rxjs';
 
-import { configureTestBed } from '../../../testing/unit-test-helper';
+import { configureTestBed } from '~/testing/unit-test-helper';
 import { ModuleStatusGuardService } from './module-status-guard.service';
 
 describe('ModuleStatusGuardService', () => {
@@ -46,9 +46,9 @@ describe('ModuleStatusGuardService', () => {
   });
 
   beforeEach(() => {
-    service = TestBed.get(ModuleStatusGuardService);
-    httpClient = TestBed.get(HttpClient);
-    router = TestBed.get(Router);
+    service = TestBed.inject(ModuleStatusGuardService);
+    httpClient = TestBed.inject(HttpClient);
+    router = TestBed.inject(Router);
     route = new ActivatedRouteSnapshot();
     route.url = [];
     route.data = {
@@ -57,7 +57,7 @@ describe('ModuleStatusGuardService', () => {
         redirectTo: '/foo'
       }
     };
-    ngZone = TestBed.get(NgZone);
+    ngZone = TestBed.inject(NgZone);
   });
 
   it('should be created', () => {
@@ -70,7 +70,7 @@ describe('ModuleStatusGuardService', () => {
   }));
 
   it('should test canActivateChild with status unavailable', fakeAsync(() => {
-    testCanActivate({ available: false, message: null }, false, '/foo/');
+    testCanActivate({ available: false, message: null }, false, '/foo');
   }));
 
   it('should test canActivateChild with status unavailable', fakeAsync(() => {