From a9809b3355b5441a294ba23c436c43b003d0cded Mon Sep 17 00:00:00 2001 From: Rupinder Date: Mon, 27 Jan 2020 17:27:55 +0530 Subject: 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 --- .../Report/run/run-report/run-report.component.spec.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'ecomp-sdk/epsdk-app-overlay') 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()); + }); }); -- cgit 1.2.3-korg