]>
Commit | Line | Data |
---|---|---|
f67539c2 TL |
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 | ||
2a845540 | 6 | import { PrometheusAlertService } from '~/app/shared/services/prometheus-alert.service'; |
f67539c2 TL |
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], | |
2a845540 TL |
16 | declarations: [PrometheusTabsComponent], |
17 | providers: [{ provide: PrometheusAlertService, useValue: { alerts: [] } }] | |
f67539c2 TL |
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 | }); |