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 { QueryBuilderComponent } from '../query-builder/query-builder.component';
import { ProblemListComponent } from './problem-list.component';
import { NgbDatepickerModule, NgbCollapseModule, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap';
import { GridComponent } from '../grid/grid.component';
import { FormsModule } from '@angular/forms';
import { reducers } from '../../reducers';
import { StoreModule } from '@ngrx/store';

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

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ProblemListComponent, QueryBuilderComponent, GridComponent ],
imports: [NgbDatepickerModule.forRoot(), NgbCollapseModule.forRoot(),
NgbTooltipModule.forRoot(), FormsModule, StoreModule.forRoot(reducers) ],
schemas: []
})
.compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(ProblemListComponent);
component = fixture.componentInstance;
component.problemList = {data: [], err: ''};
component.queryParams = {};
fixture.detectChanges();
});

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