aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/taler-harness/src/integrationtests/test-refund.ts21
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();
}