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