summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/run/run-report/run-dashboard-report/dashboard-report.service.spec.ts
blob: 1c96f7ed8fe2eb4d03e9c8b46e5ce019a3562c3d (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
29
30
31
32
33
34
35
36
37
import { TestBed } from '@angular/core/testing';

import { DashboardReportService } from './dashboard-report.service';
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { HttpClient } from '@angular/common/http';
import { environment } from 'src/environments/environment';

describe('DashboardReportService', () => {

    let service: DashboardReportService;

  beforeEach(() => {TestBed.configureTestingModule({
    imports: [HttpClientTestingModule],
    providers: [HttpClient, HttpClientTestingModule, DashboardReportService]
  });
    service = TestBed.get(DashboardReportService);
  
});

  it('should be created', () => {
    const service: DashboardReportService = TestBed.get(DashboardReportService);
    expect(service).toBeTruthy();
  });

  it('should getReportData', () => {
      service.getReportData("test").subscribe((res) => {
          expect(res).toBe(environment);
      });
  });

  it('should getReportDataWithFormFields', () => {
    service.getReportDataWithFormFields("just", "test").subscribe((res) => {
        expect(res).toBe(environment);
    });
  });

});