taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit b5c29a8bad3b19b2529cd7fd1c9e321734f08379
parent 4f376297dc3f0fc4c967de588367d62478fc85fe
Author: Sebastian <sebasjm@gmail.com>
Date:   Thu, 19 Jan 2023 16:14:44 -0300

add test for commit 4f376297dc3f0fc4c967de588367d62478fc85fe: show be able to call check refund and finish

Diffstat:
Mpackages/taler-harness/src/integrationtests/test-refund.ts | 21++++++++++++++++-----
1 file 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 @@ -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(); }