Browse Source
Merge pull request #16221 from abpframework/fix-MockRestService
Fix MockRestService
pull/16222/head
Masum ULU
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
npm/ng-packs/packages/core/testing/src/lib/services/mock-rest.service.ts
|
|
|
@ -2,6 +2,7 @@ import { |
|
|
|
ABP, |
|
|
|
CORE_OPTIONS, |
|
|
|
EnvironmentService, |
|
|
|
ExternalHttpClient, |
|
|
|
HttpErrorReporterService, |
|
|
|
RestService, |
|
|
|
} from '@abp/ng.core'; |
|
|
|
@ -16,9 +17,10 @@ export class MockRestService extends RestService { |
|
|
|
constructor( |
|
|
|
@Inject(CORE_OPTIONS) protected options: ABP.Root, |
|
|
|
protected http: HttpClient, |
|
|
|
protected externalhttp: ExternalHttpClient, |
|
|
|
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> { |
|
|
|
|