diff options
author | 2020-03-03 15:20:53 +0000 | |
---|---|---|
committer | 2020-03-03 15:20:53 +0000 | |
commit | 35b4e4b25344b907bd030377ed9e31a9c83a6385 (patch) | |
tree | e814a1d6f0d4f68b61029ba069fbd6eee5608d3b /ecomp-sdk | |
parent | eabac4afe635e87a467524bac30319614f35e2aa (diff) | |
parent | c65c0c97e41c54ec0560261109d4330dde34c49f (diff) |
Merge "wrote test case for dashboard-report-grid service class"
Diffstat (limited to 'ecomp-sdk')
-rw-r--r-- | ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/definition/dashboard-report-grid/dashboard-report-grid.service.spec.ts | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/definition/dashboard-report-grid/dashboard-report-grid.service.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/definition/dashboard-report-grid/dashboard-report-grid.service.spec.ts index 72d0980d..f8611463 100644 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/definition/dashboard-report-grid/dashboard-report-grid.service.spec.ts +++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/definition/dashboard-report-grid/dashboard-report-grid.service.spec.ts @@ -1,12 +1,28 @@ import { TestBed } from '@angular/core/testing'; import { DashboardReportGridService } from './dashboard-report-grid.service'; +import { HttpClientTestingModule } from '@angular/common/http/testing'; +import { environment } from 'src/environments/environment'; describe('DashboardReportGridService', () => { - beforeEach(() => TestBed.configureTestingModule({})); + + let service: DashboardReportGridService; + + beforeEach(() => {TestBed.configureTestingModule({ + imports: [HttpClientTestingModule] + }); + service = TestBed.get(DashboardReportGridService); + +}); it('should be created', () => { const service: DashboardReportGridService = TestBed.get(DashboardReportGridService); expect(service).toBeTruthy(); }); + + it('should getReportList', () => { + service.getReportList().subscribe((res) => { + expect(res).toBe(environment); + }) + }) }); |