From c5e922499ba8da88123f6ce1690bcf536da8321e Mon Sep 17 00:00:00 2001 From: Rupinder Date: Fri, 24 Jan 2020 12:23:23 +0530 Subject: Added test case for Dashboard-Component Written test case for Dashboard component Issue-ID: PORTAL-808 Change-Id: I09a5fc3381910226a9aa928683034cc6f5ad9e11 Signed-off-by: Rupinder --- .../ngapp/src/app/layout/dashboard/dashboard.component.spec.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ecomp-sdk/epsdk-app-overlay') diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/layout/dashboard/dashboard.component.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/layout/dashboard/dashboard.component.spec.ts index 21423380..c28734a4 100644 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/layout/dashboard/dashboard.component.spec.ts +++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/layout/dashboard/dashboard.component.spec.ts @@ -29,4 +29,10 @@ describe('DashboardComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should test the functions is called properly in constructor',() => { + expect(component.alerts.push).toHaveBeenCalled; + expect(component.sliders.push).toHaveBeenCalled; + }); + }); -- cgit 1.2.3-korg