blob: f8611463718c077e27accfe86af4065355c069d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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', () => {
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);
})
})
});
|