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 { AllergyComponent } from './allergy.component';
import { NgbModal, NgbActiveModal, NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { NgxPaginationModule } from 'ngx-pagination';

describe('AllergyComponent', () => {
let component: AllergyComponent;
let fixture: ComponentFixture<AllergyComponent>;
let modalService: NgbModal;
let modalRef: NgbActiveModal;

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

beforeEach(() => {
modalService = TestBed.get(NgbModal);
modalRef = modalService.open('');
fixture = TestBed.createComponent(AllergyComponent);
component = fixture.componentInstance;
component.activeModal = modalRef;
component.data = [{ verified: '', verificationString: '', causativeAgent: '', reactions: [], severity: {} }];
fixture.detectChanges();
});

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