]>
Commit | Line | Data |
---|---|---|
9f95a23c TL |
1 | import { HttpClientTestingModule } from '@angular/common/http/testing'; |
2 | import { ComponentFixture, TestBed } from '@angular/core/testing'; | |
e306af50 | 3 | import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; |
9f95a23c | 4 | |
1911f103 TL |
5 | import { TabsModule } from 'ngx-bootstrap/tabs'; |
6 | ||
9f95a23c TL |
7 | import { configureTestBed, i18nProviders } from '../../../../../testing/unit-test-helper'; |
8 | import { PrometheusService } from '../../../../shared/api/prometheus.service'; | |
9 | import { SettingsService } from '../../../../shared/api/settings.service'; | |
10 | import { SharedModule } from '../../../../shared/shared.module'; | |
11 | import { RulesListComponent } from './rules-list.component'; | |
12 | ||
13 | describe('RulesListComponent', () => { | |
14 | let component: RulesListComponent; | |
15 | let fixture: ComponentFixture<RulesListComponent>; | |
16 | ||
17 | configureTestBed({ | |
18 | declarations: [RulesListComponent], | |
e306af50 | 19 | imports: [HttpClientTestingModule, SharedModule, TabsModule.forRoot(), BrowserAnimationsModule], |
9f95a23c TL |
20 | providers: [PrometheusService, SettingsService, i18nProviders] |
21 | }); | |
22 | ||
23 | beforeEach(() => { | |
24 | fixture = TestBed.createComponent(RulesListComponent); | |
25 | component = fixture.componentInstance; | |
26 | fixture.detectChanges(); | |
27 | }); | |
28 | ||
29 | it('should create', () => { | |
30 | expect(component).toBeTruthy(); | |
31 | }); | |
32 | }); |