Added test case for Dashboard-Component 34/100734/1
authorRupinder <rupinsi1@in.ibm.com>
Fri, 24 Jan 2020 06:53:23 +0000 (12:23 +0530)
committerRupinder <rupinsi1@in.ibm.com>
Fri, 24 Jan 2020 06:55:33 +0000 (12:25 +0530)
Written test case for Dashboard component

Issue-ID: PORTAL-808
Change-Id: I09a5fc3381910226a9aa928683034cc6f5ad9e11
Signed-off-by: Rupinder <rupinsi1@in.ibm.com>
ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/layout/dashboard/dashboard.component.spec.ts

index 2142338..c28734a 100644 (file)
@@ -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;
+  });
+
 });