diff options
author | Florian Dold <florian@dold.me> | 2024-04-04 16:11:03 +0200 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2024-05-15 09:41:30 -0600 |
commit | 4ec57e7b2396378c12900e99d5ec8214e44bf766 (patch) | |
tree | 0b9a3ddb14031c2a08d38d5e39ddba47b8b64e33 /packages/taler-harness/src/integrationtests/test-payment.ts | |
parent | 74fa4b3e392908bf99450a23f80b40a65897dd83 (diff) | |
download | wallet-core-4ec57e7b2396378c12900e99d5ec8214e44bf766.tar.xz |
-make test work
Diffstat (limited to 'packages/taler-harness/src/integrationtests/test-payment.ts')
-rw-r--r-- | packages/taler-harness/src/integrationtests/test-payment.ts | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-payment.ts b/packages/taler-harness/src/integrationtests/test-payment.ts index aaf83dd4b..da9f97bf4 100644 --- a/packages/taler-harness/src/integrationtests/test-payment.ts +++ b/packages/taler-harness/src/integrationtests/test-payment.ts @@ -17,14 +17,14 @@ /** * Imports. */ +import { j2s } from "@gnu-taler/taler-util"; import { WalletApiOperation } from "@gnu-taler/taler-wallet-core"; import { GlobalTestState } from "../harness/harness.js"; import { createSimpleTestkudosEnvironmentV3, - withdrawViaBankV3, makeTestPaymentV2, + withdrawViaBankV2, } from "../harness/helpers.js"; -import { j2s } from "@gnu-taler/taler-util"; /** * Run test for basic, bank-integrated withdrawal and payment. @@ -32,19 +32,23 @@ import { j2s } from "@gnu-taler/taler-util"; export async function runPaymentTest(t: GlobalTestState) { // Set up test environment - const { walletClient, bankClient, exchange, merchant } = + const { bank, walletClient, exchange, merchant } = await createSimpleTestkudosEnvironmentV3(t, undefined, { withLibeufin: false, }); // Withdraw digital cash into the wallet. - - t.assertTrue(bankClient !== undefined); - await withdrawViaBankV3(t, { walletClient, bankClient, exchange, amount: "TESTKUDOS:20" }); + + await withdrawViaBankV2(t, { + walletClient, + exchange, + amount: "TESTKUDOS:20", + bank, + }); await walletClient.call(WalletApiOperation.TestingWaitTransactionsFinal, {}); - console.log("line 51") + console.log("line 51"); const order = { summary: "Buy me!", |