Summary Table
Categories |
Total Count |
PII |
0 |
URL |
0 |
DNS |
0 |
EKL |
0 |
IP |
0 |
PORT |
0 |
VsID |
0 |
CF |
0 |
AI |
0 |
VPD |
0 |
PL |
0 |
Other |
0 |
File Content
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { FormsModule } from '@angular/forms';
import { VitalsComponent } from './vitals.component';
import { NgbDatepickerModule, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap';
import { reducers } from '../../reducers';
import { StoreModule } from '@ngrx/store';
import { GridComponent } from '../grid/grid.component';
import { ChartComponent } from '../chart/chart.component';
describe('VitalsComponent', () => {
let component: VitalsComponent;
let fixture: ComponentFixture<VitalsComponent>;
const vitalData = {
data: [],
err: ''
};
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ VitalsComponent, GridComponent, ChartComponent ],
imports: [StoreModule.forRoot(reducers), NgbDatepickerModule.forRoot(), NgbTooltipModule.forRoot(), FormsModule ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(VitalsComponent);
component = fixture.componentInstance;
component.vitals = vitalData;
component.queryParams = {vitals: {}};
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});