diff options
author | 2020-01-24 12:23:23 +0530 | |
---|---|---|
committer | 2020-01-24 12:25:33 +0530 | |
commit | c5e922499ba8da88123f6ce1690bcf536da8321e (patch) | |
tree | c27e12325b700a61c746322fab4bedd22ac3b239 /ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp | |
parent | 08e25e661fd17ff89ef6afa4fc98a7e1a8660170 (diff) |
Added test case for Dashboard-Component
Written test case for Dashboard component
Issue-ID: PORTAL-808
Change-Id: I09a5fc3381910226a9aa928683034cc6f5ad9e11
Signed-off-by: Rupinder <rupinsi1@in.ibm.com>
Diffstat (limited to 'ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp')
-rw-r--r-- | ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/layout/dashboard/dashboard.component.spec.ts | 6 |
1 files changed, 6 insertions, 0 deletions
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; + }); + }); |