]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/services/refresh-interval.service.spec.ts
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / shared / services / refresh-interval.service.spec.ts
index 4d34ce0a9653c5776efb2eb205c18bf48524d677..c26d6389be653075a1e19069b5acb380c71b6cef 100644 (file)
@@ -1,19 +1,18 @@
 import { NgZone } from '@angular/core';
 import { fakeAsync, TestBed, tick } from '@angular/core/testing';
 
-import { configureTestBed } from '../../../testing/unit-test-helper';
+import { configureTestBed } from '~/testing/unit-test-helper';
 import { RefreshIntervalService } from './refresh-interval.service';
 
 describe('RefreshIntervalService', () => {
   let service: RefreshIntervalService;
 
   configureTestBed({
-    imports: [],
     providers: [RefreshIntervalService]
   });
 
   beforeEach(() => {
-    service = TestBed.get(RefreshIntervalService);
+    service = TestBed.inject(RefreshIntervalService);
   });
 
   it('should be created', () => {
@@ -22,7 +21,7 @@ describe('RefreshIntervalService', () => {
 
   it('should initial private interval time right', () => {
     sessionStorage.setItem('dashboard_interval', '10000');
-    const ngZone = TestBed.get(NgZone);
+    const ngZone = TestBed.inject(NgZone);
     service = new RefreshIntervalService(ngZone);
     expect(service.getRefreshInterval()).toBe(10000);
   });