From bdba58831fdc9ec83e8ee51511d40a84c63987ba Mon Sep 17 00:00:00 2001 From: Indrijeet kumar Date: Tue, 3 Mar 2020 15:29:33 +0530 Subject: 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 --- .../dashboard-report-grid/data-chart/data-chart.component.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) 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(); + }) }); -- cgit 1.2.3-korg