6d0c2946a3c2c2e31a23d83fef2cd3dd37ce7e29
[portal/sdk.git] /
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';
6
7 describe('DashboardReportGridComponent', () => {
8   let component: DashboardReportGridComponent;
9   let fixture: ComponentFixture<DashboardReportGridComponent>;
10
11   beforeEach(async(() => {
12     TestBed.configureTestingModule({
13       schemas: [CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA], 
14       declarations: [ DashboardReportGridComponent ],
15       imports: [FormsModule, HttpClientTestingModule]
16     })
17     .compileComponents();
18   })); 
19
20   beforeEach(() => {
21     fixture = TestBed.createComponent(DashboardReportGridComponent);
22     component = fixture.componentInstance;
23     fixture.detectChanges();
24   });
25
26   it('should create', () => {
27     expect(component).toBeTruthy();
28   });
29
30   it('should test ngOnInit method', () => {
31       component.ngOnInit();
32   });
33
34   it('should test changedOption method', () => {    
35     component.changedOptions();
36   });
37
38   it('should test assignCopy method', () => {
39       component.assignCopy();
40   });
41
42   it('should test filterItem method', () => {
43       component.filterItem(1);
44   });
45
46   it('should test addItem method', () => {
47       component.addItem();
48   });
49
50 });