1 import { async, ComponentFixture, TestBed } from '@angular/core/testing';
2 import { FormsModule } from '@angular/forms';
3 import { DashboardReportGridComponent } from './dashboard-report-grid.component';
4 import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from '@angular/core';
5 import { HttpClientTestingModule } from '@angular/common/http/testing';
7 describe('DashboardReportGridComponent', () => {
8 let component: DashboardReportGridComponent;
9 let fixture: ComponentFixture<DashboardReportGridComponent>;
11 beforeEach(async(() => {
12 TestBed.configureTestingModule({
13 schemas: [CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA],
14 declarations: [ DashboardReportGridComponent ],
15 imports: [FormsModule, HttpClientTestingModule]
21 fixture = TestBed.createComponent(DashboardReportGridComponent);
22 component = fixture.componentInstance;
23 fixture.detectChanges();
26 it('should create', () => {
27 expect(component).toBeTruthy();
30 it('should test ngOnInit method', () => {
34 it('should test changedOption method', () => {
35 component.changedOptions();
38 it('should test assignCopy method', () => {
39 component.assignCopy();
42 it('should test filterItem method', () => {
43 component.filterItem(1);
46 it('should test addItem method', () => {