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', () => { 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); }) }) });