blob: 605653bd05731badf44d6b1ce159109a9db08588 (
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
|
import { getTestBed, TestBed } from '@angular/core/testing';
import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { ServiceInstanceDetailsService } from './service-instance-details.service';
import { NgRedux } from '@angular-redux/store';
export class MockAppStore<T> {}
describe('Service instance details service', () => {
let injector;
let service: ServiceInstanceDetailsService;
let httpMock: HttpTestingController;
beforeEach(() => {
TestBed.configureTestingModule({
imports: [HttpClientTestingModule],
providers: [ServiceInstanceDetailsService,
{provide: NgRedux, useClass: MockAppStore}]
});
injector = getTestBed();
service = injector.get(ServiceInstanceDetailsService);
httpMock = injector.get(HttpTestingController);
});
});
|