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 { AllergiesComponent } from './allergies.component';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';

describe('AllergiesComponent', () => {
let component: AllergiesComponent;
let fixture: ComponentFixture<AllergiesComponent>;

const allergyData = {
data: [{verificationString: 'verificationString', causativeAgent: 'test', reactions: [], severity: {} }],
err: '',
dataTable: []
};

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ AllergiesComponent ],
imports: [ NgbModule.forRoot()]
})
.compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(AllergiesComponent);
component = fixture.componentInstance;
component.allergies = allergyData;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});