Added test case for run-report component 12/100812/1
authorRupinder <rupinsi1@in.ibm.com>
Mon, 27 Jan 2020 11:57:55 +0000 (17:27 +0530)
committerRupinder <rupinsi1@in.ibm.com>
Mon, 27 Jan 2020 11:59:01 +0000 (17:29 +0530)
Written test case for the run-report component

Issue-ID: PORTAL-808
Change-Id: If56b0f76ffd5364b0e952bfab61a65a03d3cce64
Signed-off-by: Rupinder <rupinsi1@in.ibm.com>
ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/run/run-report/run-report.component.spec.ts

index 8e77e7b..b897f14 100644 (file)
@@ -47,7 +47,17 @@ describe('RunReportFinalTableComponent', () => {
        component.showError("abc");
        expect(component.error).toEqual(true);
        expect(component.showSpinner).toEqual(false);
-  })
+  });
+
+  it('should test afterViewInitialProcesses method ', () =>{
+       component.DashboardReportObj.length === 0;
+       component.reportMode === "Regular";
+       component.initCnt == 0;
+
+       component.afterViewInitialProcesses();
+       expect(component.showMoreVert).toEqual(false);
+       expect(component.NEWdisplayedColumns).toEqual(new Array());
+  });
 
 
 });