[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 02/02: add test for commit 4f376297dc3f0fc4c967de588
From: |
gnunet |
Subject: |
[taler-wallet-core] 02/02: add test for commit 4f376297dc3f0fc4c967de588367d62478fc85fe: show be able to call check refund and finish |
Date: |
Thu, 19 Jan 2023 20:14:55 +0100 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository wallet-core.
commit b5c29a8bad3b19b2529cd7fd1c9e321734f08379
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Thu Jan 19 16:14:44 2023 -0300
add test for commit 4f376297dc3f0fc4c967de588367d62478fc85fe: show be able
to call check refund and finish
---
.../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
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();
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.