diff options
author | Sebastian <sebasjm@gmail.com> | 2024-03-08 12:19:20 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-03-08 12:19:20 -0300 |
commit | e0e82cdf07930d766081e42203c5a4e66d43191f (patch) | |
tree | 0c0b96cb88d701c7b19b0ef34ec1c67255a2f49e /packages/auditor-backoffice-ui/src/hooks/testing.tsx | |
parent | b3ae213bc5987fbb6a2ce5c08d626f9f65508b03 (diff) | |
download | wallet-core-e0e82cdf07930d766081e42203c5a4e66d43191f.tar.xz |
wip #8489
Diffstat (limited to 'packages/auditor-backoffice-ui/src/hooks/testing.tsx')
-rw-r--r-- | packages/auditor-backoffice-ui/src/hooks/testing.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/auditor-backoffice-ui/src/hooks/testing.tsx b/packages/auditor-backoffice-ui/src/hooks/testing.tsx index 3ea22475b..20b9c8a35 100644 --- a/packages/auditor-backoffice-ui/src/hooks/testing.tsx +++ b/packages/auditor-backoffice-ui/src/hooks/testing.tsx @@ -27,7 +27,7 @@ import { ApiContextProvider } from "@gnu-taler/web-util/browser"; import { BackendContextProvider } from "../context/backend.js"; import { InstanceContextProvider } from "../context/instance.js"; import { HttpResponseOk, RequestOptions } from "@gnu-taler/web-util/browser"; -import { TalerBankIntegrationHttpClient, TalerCoreBankHttpClient } from "@gnu-taler/taler-util"; +import { TalerBankIntegrationHttpClient, TalerCoreBankHttpClient, TalerRevenueHttpClient, TalerWireGatewayHttpClient } from "@gnu-taler/taler-util"; export class ApiMockEnvironment extends MockEnvironment { constructor(debug = false) { @@ -144,9 +144,9 @@ export class ApiMockEnvironment extends MockEnvironment { } const bankCore = new TalerCoreBankHttpClient("http://localhost", mockHttpClient) - const bankIntegration = bankCore.getIntegrationAPI() - const bankRevenue = bankCore.getRevenueAPI("a") - const bankWire = bankCore.getWireGatewayAPI("b") + const bankIntegration = new TalerBankIntegrationHttpClient(bankCore.getIntegrationAPI(), mockHttpClient) + const bankRevenue = new TalerRevenueHttpClient(bankCore.getRevenueAPI("a"), "a", mockHttpClient) + const bankWire = new TalerWireGatewayHttpClient(bankCore.getWireGatewayAPI("b"), "b", mockHttpClient) return ( <BackendContextProvider defaultUrl="http://backend"> |