[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: harness: check balance in bas
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: harness: check balance in basic payment test |
Date: |
Fri, 30 Jun 2023 16:44:50 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new 5754f0039 harness: check balance in basic payment test
5754f0039 is described below
commit 5754f00399d923a605619b3ee6ae84c11cea25f6
Author: Florian Dold <florian@dold.me>
AuthorDate: Fri Jun 30 16:44:46 2023 +0200
harness: check balance in basic payment test
---
packages/taler-harness/src/integrationtests/test-payment.ts | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/packages/taler-harness/src/integrationtests/test-payment.ts
b/packages/taler-harness/src/integrationtests/test-payment.ts
index 60d8e320d..f184e57e7 100644
--- a/packages/taler-harness/src/integrationtests/test-payment.ts
+++ b/packages/taler-harness/src/integrationtests/test-payment.ts
@@ -17,12 +17,14 @@
/**
* Imports.
*/
+import { WalletApiOperation } from "@gnu-taler/taler-wallet-core";
import { GlobalTestState } from "../harness/harness.js";
import {
createSimpleTestkudosEnvironment,
withdrawViaBank,
makeTestPayment,
} from "../harness/helpers.js";
+import { j2s } from "@gnu-taler/taler-util";
/**
* Run test for basic, bank-integrated withdrawal and payment.
@@ -68,6 +70,12 @@ export async function runPaymentTest(t: GlobalTestState) {
await makeTestPayment(t, { wallet, merchant, order: order3 });
await wallet.runUntilDone();
+
+ const bal = await wallet.client.call(WalletApiOperation.GetBalances, {});
+ console.log(`balance after 3 payments: ${j2s(bal)}`);
+ t.assertAmountEquals(bal.balances[0].available, "TESTKUDOS:3.8");
+ t.assertAmountEquals(bal.balances[0].pendingIncoming, "TESTKUDOS:0");
+ t.assertAmountEquals(bal.balances[0].pendingOutgoing, "TESTKUDOS:0");
}
runPaymentTest.suites = ["wallet"];
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: harness: check balance in basic payment test,
gnunet <=