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 { NgbModal, NgbActiveModal, NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { ProblemComponent } from './problem.component';

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

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

beforeEach(() => {
modalService = TestBed.get(NgbModal);
modalRef = modalService.open('');
fixture = TestBed.createComponent(ProblemComponent);
component = fixture.componentInstance;
component.activeModal = modalRef;
component.data = {};
fixture.detectChanges();
});

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