1 import { Component, Input } from '@angular/core';
2 import { async, ComponentFixture, TestBed } from '@angular/core/testing';
4 import { Observable } from 'rxjs/Observable';
6 import { PerformanceCounterService } from '../../../shared/api/performance-counter.service';
7 import { CdTableColumn } from '../../../shared/models/cd-table-column';
8 import { DimlessPipe } from '../../../shared/pipes/dimless.pipe';
9 import { FormatterService } from '../../../shared/services/formatter.service';
10 import { TablePerformanceCounterComponent } from './table-performance-counter.component';
12 @Component({ selector: 'cd-table', template: '' })
13 class TableStubComponent {
15 @Input() columns: CdTableColumn[];
16 @Input() autoReload: any = 5000;
19 describe('TablePerformanceCounterComponent', () => {
20 let component: TablePerformanceCounterComponent;
21 let fixture: ComponentFixture<TablePerformanceCounterComponent>;
23 const fakeService = {};
25 beforeEach(async(() => {
26 TestBed.configureTestingModule({
27 declarations: [TablePerformanceCounterComponent, TableStubComponent, DimlessPipe],
30 { provide: PerformanceCounterService, useValue: fakeService },
34 }).compileComponents();
38 fixture = TestBed.createComponent(TablePerformanceCounterComponent);
39 component = fixture.componentInstance;
40 fixture.detectChanges();
43 it('should create', () => {
44 expect(component).toBeTruthy();