diff options
author | Rupinder <rupinsi1@in.ibm.com> | 2020-01-27 17:27:55 +0530 |
---|---|---|
committer | Rupinder <rupinsi1@in.ibm.com> | 2020-01-27 17:29:01 +0530 |
commit | a9809b3355b5441a294ba23c436c43b003d0cded (patch) | |
tree | cba9347a0424829d68a15e8b468bbda068b7551d | |
parent | d8f02a6b767e54f86a37343321515688952f09dc (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>
-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.ts | 12 |
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()); + }); }); |