diff options
author | Florian Dold <florian@dold.me> | 2021-10-14 11:36:43 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-10-14 11:36:43 +0200 |
commit | c53264869451ccbfbaf1976e01df8c7636163068 (patch) | |
tree | a6f4359d4fcd558ee443991111404bc095642e5b /packages/taler-wallet-cli/src/integrationtests/helpers.ts | |
parent | 6f4c0a6fb244b8e42b6d91edd3c5901ae39f2202 (diff) | |
download | wallet-core-c53264869451ccbfbaf1976e01df8c7636163068.tar.xz |
implement fakebank withdrawal
Diffstat (limited to 'packages/taler-wallet-cli/src/integrationtests/helpers.ts')
-rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/helpers.ts | 33 |
1 files changed, 23 insertions, 10 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/helpers.ts b/packages/taler-wallet-cli/src/integrationtests/helpers.ts index 1fdc36788..3b4e1643f 100644 --- a/packages/taler-wallet-cli/src/integrationtests/helpers.ts +++ b/packages/taler-wallet-cli/src/integrationtests/helpers.ts @@ -353,13 +353,22 @@ export async function makeTestPayment( const { wallet, merchant } = args; const instance = args.instance ?? "default"; - const orderResp = await MerchantPrivateApi.createOrder(merchant, instance, { - order: args.order, - }, auth); + const orderResp = await MerchantPrivateApi.createOrder( + merchant, + instance, + { + order: args.order, + }, + auth, + ); - let orderStatus = await MerchantPrivateApi.queryPrivateOrderStatus(merchant, { - orderId: orderResp.order_id, - }, auth); + let orderStatus = await MerchantPrivateApi.queryPrivateOrderStatus( + merchant, + { + orderId: orderResp.order_id, + }, + auth, + ); t.assertTrue(orderStatus.order_status === "unpaid"); @@ -384,10 +393,14 @@ export async function makeTestPayment( // Check if payment was successful. - orderStatus = await MerchantPrivateApi.queryPrivateOrderStatus(merchant, { - orderId: orderResp.order_id, - instance, - }, auth); + orderStatus = await MerchantPrivateApi.queryPrivateOrderStatus( + merchant, + { + orderId: orderResp.order_id, + instance, + }, + auth, + ); t.assertTrue(orderStatus.order_status === "paid"); } |