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