]> git.apps.os.sepia.ceph.com Git - ceph.git/blob
64548e327b036f0337a49097b56fc96b3c7829aa
[ceph.git] /
1 import { NO_ERRORS_SCHEMA } from '@angular/core';
2 import { async, ComponentFixture, TestBed } from '@angular/core/testing';
3
4 import { PerformanceCounterService } from '../../../shared/api/performance-counter.service';
5 import { TableComponent } from '../../../shared/datatable/table/table.component';
6 import { DimlessPipe } from '../../../shared/pipes/dimless.pipe';
7 import { FormatterService } from '../../../shared/services/formatter.service';
8 import { TablePerformanceCounterComponent } from './table-performance-counter.component';
9
10 describe('TablePerformanceCounterComponent', () => {
11   let component: TablePerformanceCounterComponent;
12   let fixture: ComponentFixture<TablePerformanceCounterComponent>;
13
14   const fakeService = {};
15
16   beforeEach(async(() => {
17     TestBed.configureTestingModule({
18       declarations: [TablePerformanceCounterComponent, TableComponent, DimlessPipe],
19       imports: [],
20       schemas: [NO_ERRORS_SCHEMA],
21       providers: [
22         { provide: PerformanceCounterService, useValue: fakeService },
23         DimlessPipe,
24         FormatterService
25       ]
26     }).compileComponents();
27   }));
28
29   beforeEach(() => {
30     fixture = TestBed.createComponent(TablePerformanceCounterComponent);
31     component = fixture.componentInstance;
32     fixture.detectChanges();
33   });
34
35   it('should create', () => {
36     expect(component).toBeTruthy();
37   });
38 });