]> git.proxmox.com Git - ceph.git/blob - 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
1 import { ComponentFixture, TestBed } from '@angular/core/testing';
2 import { RouterTestingModule } from '@angular/router/testing';
3
4 import { NgbNavModule } from '@ng-bootstrap/ng-bootstrap';
5
6 import { PrometheusAlertService } from '~/app/shared/services/prometheus-alert.service';
7 import { configureTestBed } from '~/testing/unit-test-helper';
8 import { PrometheusTabsComponent } from './prometheus-tabs.component';
9
10 describe('PrometheusTabsComponent', () => {
11 let component: PrometheusTabsComponent;
12 let fixture: ComponentFixture<PrometheusTabsComponent>;
13
14 configureTestBed({
15 imports: [RouterTestingModule, NgbNavModule],
16 declarations: [PrometheusTabsComponent],
17 providers: [{ provide: PrometheusAlertService, useValue: { alerts: [] } }]
18 });
19
20 beforeEach(() => {
21 fixture = TestBed.createComponent(PrometheusTabsComponent);
22 component = fixture.componentInstance;
23 fixture.detectChanges();
24 });
25
26 it('should create', () => {
27 expect(component).toBeTruthy();
28 });
29 });