Browse Source

Fix MockRestService

pull/16221/head
Mahmut Gundogdu 4 years ago
parent
commit
d818dcd721
  1. 4
      npm/ng-packs/packages/core/testing/src/lib/services/mock-rest.service.ts

4
npm/ng-packs/packages/core/testing/src/lib/services/mock-rest.service.ts

@ -2,6 +2,7 @@ import {
ABP, ABP,
CORE_OPTIONS, CORE_OPTIONS,
EnvironmentService, EnvironmentService,
ExternalHttpClient,
HttpErrorReporterService, HttpErrorReporterService,
RestService, RestService,
} from '@abp/ng.core'; } from '@abp/ng.core';
@ -16,9 +17,10 @@ export class MockRestService extends RestService {
constructor( constructor(
@Inject(CORE_OPTIONS) protected options: ABP.Root, @Inject(CORE_OPTIONS) protected options: ABP.Root,
protected http: HttpClient, protected http: HttpClient,
protected externalhttp: ExternalHttpClient,
protected environment: EnvironmentService, protected environment: EnvironmentService,
) { ) {
super(options, http, environment, null as unknown as HttpErrorReporterService); super(options, http,externalhttp, environment, null as unknown as HttpErrorReporterService);
} }
handleError(err: any): Observable<any> { handleError(err: any): Observable<any> {

Loading…
Cancel
Save