summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-app-overlay
diff options
context:
space:
mode:
authorRupinder <rupinsi1@in.ibm.com>2020-01-27 17:27:55 +0530
committerRupinder <rupinsi1@in.ibm.com>2020-01-27 17:29:01 +0530
commita9809b3355b5441a294ba23c436c43b003d0cded (patch)
treecba9347a0424829d68a15e8b468bbda068b7551d /ecomp-sdk/epsdk-app-overlay
parentd8f02a6b767e54f86a37343321515688952f09dc (diff)
Added test case for run-report component
Written test case for the run-report component Issue-ID: PORTAL-808 Change-Id: If56b0f76ffd5364b0e952bfab61a65a03d3cce64 Signed-off-by: Rupinder <rupinsi1@in.ibm.com>
Diffstat (limited to 'ecomp-sdk/epsdk-app-overlay')
-rw-r--r--ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/run/run-report/run-report.component.spec.ts12
1 files changed, 11 insertions, 1 deletions
diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/run/run-report/run-report.component.spec.ts b/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 8e77e7b6..b897f149 100644
--- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/run/run-report/run-report.component.spec.ts
+++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/run/run-report/run-report.component.spec.ts
@@ -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());
+ });
});