]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/prometheus-tabs/prometheus-tabs.component.spec.ts
import ceph quincy 17.2.4
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / cluster / prometheus / prometheus-tabs / prometheus-tabs.component.spec.ts
index 675063413adc15c97f39a8b1b4e2d4ec31b2bc04..3272ae32fd0be06791c74eb4c8f28c6ec4b319ff 100644 (file)
@@ -3,6 +3,7 @@ import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbNavModule } from '@ng-bootstrap/ng-bootstrap';
 
+import { PrometheusAlertService } from '~/app/shared/services/prometheus-alert.service';
 import { configureTestBed } from '~/testing/unit-test-helper';
 import { PrometheusTabsComponent } from './prometheus-tabs.component';
 
@@ -12,7 +13,8 @@ describe('PrometheusTabsComponent', () => {
 
   configureTestBed({
     imports: [RouterTestingModule, NgbNavModule],
-    declarations: [PrometheusTabsComponent]
+    declarations: [PrometheusTabsComponent],
+    providers: [{ provide: PrometheusAlertService, useValue: { alerts: [] } }]
   });
 
   beforeEach(() => {