1
0
Fork 0
traefik/webui/src/app/charts/bar-chart/bar-chart.component.spec.ts
2019-02-05 18:18:04 +01:00

29 lines
838 B
TypeScript

import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { WindowService } from '../../services/window.service';
import { BarChartComponent } from './bar-chart.component';
describe('BarChartComponent', () => {
let component: BarChartComponent;
let fixture: ComponentFixture<BarChartComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [BarChartComponent],
providers: [{ provide: WindowService, useInstance: {} }]
}).compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(BarChartComponent);
component = fixture.componentInstance;
});
it('should create', () => {
expect(component).toBeTruthy();
});
it('should initially go to loading state', () => {
expect(component.loading).toBeTruthy();
});
});