]> git.apps.os.sepia.ceph.com Git - ceph.git/blob
ebcea6fcefc40570c1aa23062f799352d0a204e3
[ceph.git] /
1 import { NO_ERRORS_SCHEMA } from '@angular/core';
2 import { 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 { configureTestBed } from '../../../shared/unit-test-helper';
9 import { TablePerformanceCounterComponent } from './table-performance-counter.component';
10
11 describe('TablePerformanceCounterComponent', () => {
12   let component: TablePerformanceCounterComponent;
13   let fixture: ComponentFixture<TablePerformanceCounterComponent>;
14
15   const fakeService = {};
16
17   configureTestBed({
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   });
27
28   beforeEach(() => {
29     fixture = TestBed.createComponent(TablePerformanceCounterComponent);
30     component = fixture.componentInstance;
31     fixture.detectChanges();
32   });
33
34   it('should create', () => {
35     expect(component).toBeTruthy();
36   });
37 });