summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIndrijeet kumar <indriku1@in.ibm.com>2020-03-03 15:29:33 +0530
committerIndrijeet kumar <indriku1@in.ibm.com>2020-03-03 15:29:41 +0530
commitbdba58831fdc9ec83e8ee51511d40a84c63987ba (patch)
tree559269a502e63e51c647c7a1ad42bff995971f85
parent1fe7926c797ca4eb839fd323b31b7b9438501878 (diff)
test case written for data-chart component
test case written for data-chart component Issue-ID: PORTAL-813 Change-Id: I8702ed2f686bb0b356983728bcbd5d2b612b15c1 Signed-off-by: Indrijeet Kumar <indriku1@in.ibm.com>
-rw-r--r--ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/definition/dashboard-report-grid/data-chart/data-chart.component.spec.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/definition/dashboard-report-grid/data-chart/data-chart.component.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/definition/dashboard-report-grid/data-chart/data-chart.component.spec.ts
index ea0912b2..2c67d5d7 100644
--- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/definition/dashboard-report-grid/data-chart/data-chart.component.spec.ts
+++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/definition/dashboard-report-grid/data-chart/data-chart.component.spec.ts
@@ -29,4 +29,8 @@ describe('DataChartComponent', () => {
it('should compile', () => {
expect(component).toBeTruthy();
});
+
+ it('should test ngOnInit method',()=>{
+ expect(component.dataSource).toBeDefined();
+ })
});