aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-harness/src/integrationtests
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2024-04-04 13:09:02 -0600
committerIván Ávalos <avalos@disroot.org>2024-05-15 09:41:30 -0600
commit87bcaa1200c47b349f8d597998ee92c426761b35 (patch)
tree88e2739b27bfa21808a46a46ca3735548b98559d /packages/taler-harness/src/integrationtests
parent4ec57e7b2396378c12900e99d5ec8214e44bf766 (diff)
downloadwallet-core-87bcaa1200c47b349f8d597998ee92c426761b35.tar.xz
harness: initial libeufin testing setup
Diffstat (limited to 'packages/taler-harness/src/integrationtests')
-rw-r--r--packages/taler-harness/src/integrationtests/test-payment.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-payment.ts b/packages/taler-harness/src/integrationtests/test-payment.ts
index da9f97bf4..651d0edfa 100644
--- a/packages/taler-harness/src/integrationtests/test-payment.ts
+++ b/packages/taler-harness/src/integrationtests/test-payment.ts
@@ -24,6 +24,7 @@ import {
createSimpleTestkudosEnvironmentV3,
makeTestPaymentV2,
withdrawViaBankV2,
+ withdrawViaBankV3,
} from "../harness/helpers.js";
/**
@@ -32,24 +33,23 @@ import {
export async function runPaymentTest(t: GlobalTestState) {
// Set up test environment
- const { bank, walletClient, exchange, merchant } =
+ const { bankClient, walletClient, exchange, merchant } =
await createSimpleTestkudosEnvironmentV3(t, undefined, {
withLibeufin: false,
});
// Withdraw digital cash into the wallet.
- await withdrawViaBankV2(t, {
+ t.assertTrue(bankClient !== undefined);
+ await withdrawViaBankV3(t, {
walletClient,
exchange,
amount: "TESTKUDOS:20",
- bank,
+ bankClient,
});
await walletClient.call(WalletApiOperation.TestingWaitTransactionsFinal, {});
- console.log("line 51");
-
const order = {
summary: "Buy me!",
amount: "TESTKUDOS:5",