diff options
author | Sebastian <sebasjm@gmail.com> | 2023-01-19 16:14:44 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-01-19 16:14:44 -0300 |
commit | b5c29a8bad3b19b2529cd7fd1c9e321734f08379 (patch) | |
tree | c342e258aec1806b80dad049d70bfb1ab721bc75 /packages/taler-harness/src/integrationtests/test-refund.ts | |
parent | 4f376297dc3f0fc4c967de588367d62478fc85fe (diff) | |
download | wallet-core-b5c29a8bad3b19b2529cd7fd1c9e321734f08379.tar.xz |
add test for commit 4f376297dc3f0fc4c967de588367d62478fc85fe: show be able to call check refund and finish
Diffstat (limited to 'packages/taler-harness/src/integrationtests/test-refund.ts')
-rw-r--r-- | packages/taler-harness/src/integrationtests/test-refund.ts | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-refund.ts b/packages/taler-harness/src/integrationtests/test-refund.ts index b63dad590..91dee4905 100644 --- a/packages/taler-harness/src/integrationtests/test-refund.ts +++ b/packages/taler-harness/src/integrationtests/test-refund.ts @@ -84,12 +84,14 @@ export async function runRefundTest(t: GlobalTestState) { console.log(ref); - let r = await wallet.client.call(WalletApiOperation.ApplyRefund, { - talerRefundUri: ref.talerRefundUri, - }); - console.log(r); + { + const r = await wallet.client.call(WalletApiOperation.ApplyRefund, { + talerRefundUri: ref.talerRefundUri, + }); + console.log(r); - await wallet.runUntilDone(); + await wallet.runUntilDone(); + } { const r2 = await wallet.client.call(WalletApiOperation.GetBalances, {}); @@ -100,6 +102,15 @@ export async function runRefundTest(t: GlobalTestState) { console.log(JSON.stringify(r2, undefined, 2)); } + { + const r3 = await wallet.client.call(WalletApiOperation.ApplyRefundFromPurchaseId, { + purchaseId: r1.proposalId + }); + console.log(r3); + + await wallet.runUntilDone(); + } + await t.shutdown(); } |