Browse Source

Merge pull request #16221 from abpframework/fix-MockRestService

Fix MockRestService
pull/16222/head
Masum ULU 4 years ago
committed by GitHub
parent
commit
fa440db3e1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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