1 import { async, ComponentFixture, TestBed } from '@angular/core/testing';
3 import { TabsModule } from 'ngx-bootstrap/tabs';
5 import { CdTableSelection } from '../../../shared/models/cd-table-selection';
6 import { SharedModule } from '../../../shared/shared.module';
7 import { PerformanceCounterModule } from '../../performance-counter/performance-counter.module';
8 import { RgwDaemonService } from '../services/rgw-daemon.service';
9 import { RgwDaemonDetailsComponent } from './rgw-daemon-details.component';
11 describe('RgwDaemonDetailsComponent', () => {
12 let component: RgwDaemonDetailsComponent;
13 let fixture: ComponentFixture<RgwDaemonDetailsComponent>;
16 get: (id: string) => {
17 return new Promise(function(resolve, reject) {
23 beforeEach(async(() => {
24 TestBed.configureTestingModule({
25 declarations: [ RgwDaemonDetailsComponent ],
28 PerformanceCounterModule,
31 providers: [{ provide: RgwDaemonService, useValue: fakeService }]
36 fixture = TestBed.createComponent(RgwDaemonDetailsComponent);
37 component = fixture.componentInstance;
39 component.selection = new CdTableSelection();
41 fixture.detectChanges();
44 it('should create', () => {
45 expect(component).toBeTruthy();