]> git.apps.os.sepia.ceph.com Git - ceph.git/blob
a8d07224583c4f74761512cff1b63f9f4484e870
[ceph.git] /
1 import { HttpClientModule } from '@angular/common/http';
2 import { ComponentFixture, TestBed } from '@angular/core/testing';
3
4 import { TabsModule } from 'ngx-bootstrap';
5
6 import { configureTestBed } from '../../../../../testing/unit-test-helper';
7 import { DataTableModule } from '../../../../shared/datatable/datatable.module';
8 import { CdTableSelection } from '../../../../shared/models/cd-table-selection';
9 import { SharedModule } from '../../../../shared/shared.module';
10 import { PerformanceCounterModule } from '../../../performance-counter/performance-counter.module';
11 import { OsdPerformanceHistogramComponent } from '../osd-performance-histogram/osd-performance-histogram.component';
12 import { OsdDetailsComponent } from './osd-details.component';
13
14 describe('OsdDetailsComponent', () => {
15   let component: OsdDetailsComponent;
16   let fixture: ComponentFixture<OsdDetailsComponent>;
17
18   configureTestBed({
19     imports: [
20       HttpClientModule,
21       TabsModule.forRoot(),
22       PerformanceCounterModule,
23       DataTableModule,
24       SharedModule
25     ],
26     declarations: [OsdDetailsComponent, OsdPerformanceHistogramComponent]
27   });
28
29   beforeEach(() => {
30     fixture = TestBed.createComponent(OsdDetailsComponent);
31     component = fixture.componentInstance;
32
33     component.selection = new CdTableSelection();
34
35     fixture.detectChanges();
36   });
37
38   it('should create', () => {
39     expect(component).toBeTruthy();
40   });
41 });