summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRupinder <rupinsi1@in.ibm.com>2020-03-05 16:55:15 +0530
committerRupinder <rupinsi1@in.ibm.com>2020-03-05 16:55:21 +0530
commit7280eb958fd48b6e0885c8f71a139984213a93ba (patch)
tree31575296f806bbe384a8e8507003d3db4e03e6cd
parentd1cb62e4628dcc6a445b48de9f618e50e25475f4 (diff)
added test case for dashboard-report-grid component
Wrote test cases for dashboard-report-grid.compnent.spec.ts Issue-ID: PORTAL-834 Change-Id: I74722826e06985543ac1102f7b22d477e382695d Signed-off-by: Rupinder<rupinsi1@in.ibm.com>
-rw-r--r--ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/definition/dashboard-report-grid/dashboard-report-grid.component.spec.ts44
1 files changed, 18 insertions, 26 deletions
diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/definition/dashboard-report-grid/dashboard-report-grid.component.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/definition/dashboard-report-grid/dashboard-report-grid.component.spec.ts
index b9d63853..6d0c2946 100644
--- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/definition/dashboard-report-grid/dashboard-report-grid.component.spec.ts
+++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/definition/dashboard-report-grid/dashboard-report-grid.component.spec.ts
@@ -29,30 +29,22 @@ describe('DashboardReportGridComponent', () => {
it('should test ngOnInit method', () => {
component.ngOnInit();
- expect(component.showSpinner).toEqual(true);
- expect(component.options.outerMargin).toEqual(true);
- expect(component.options.outerMarginTop).toEqual(10);
- expect(component.options.outerMarginRight).toEqual(10);
- expect(component.options.outerMarginBottom).toEqual(700);
- expect(component.options.outerMarginLeft).toEqual(10);
- expect(component.options.scrollSensitivity).toEqual(10);
- expect(component.options.scrollSpeed).toEqual(20);
- expect(component.options.emptyCellDragMaxCols).toEqual(null);
- expect(component.options.emptyCellDragMaxRows).toEqual(null);
- expect(component.options.enableOccupiedCellDrop).toEqual(true);
- expect(component.options.ignoreMarginInRow).toEqual(false);
- expect(component.options.draggable.enabled).toEqual(true);
- expect(component.options.resizable.enabled).toEqual(true);
- expect(component.options.swap).toEqual(false);
- expect(component.options.pushItems).toEqual(true);
- expect(component.options.disablePushOnDrag).toEqual(false);
- expect(component.options.disablePushOnResize).toEqual(false);
- expect(component.options.pushResizeItems).toEqual(true);
- expect(component.options.disableWindowResize).toEqual(true);
- expect(component.options.disableWarnings).toEqual(false);
- expect(component.options.scrollToNewItems).toEqual(true);
- expect(component.options.enableEmptyCellDrop).toEqual(true);
- expect(component.options.minCols).toEqual(2);
- expect(component.options.minRows).toEqual(2);
- })
+ });
+
+ it('should test changedOption method', () => {
+ component.changedOptions();
+ });
+
+ it('should test assignCopy method', () => {
+ component.assignCopy();
+ });
+
+ it('should test filterItem method', () => {
+ component.filterItem(1);
+ });
+
+ it('should test addItem method', () => {
+ component.addItem();
+ });
+
}); \ No newline at end of file