[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: also check effective amount
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: also check effective amount |
Date: |
Tue, 01 Sep 2020 17:15:24 +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 5f3d9835 also check effective amount
5f3d9835 is described below
commit 5f3d9835fa1d6174da87da3882221d186f5df1b6
Author: Florian Dold <florian.dold@gmail.com>
AuthorDate: Tue Sep 1 20:45:20 2020 +0530
also check effective amount
---
packages/taler-integrationtests/src/test-refund-incremental.ts | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/packages/taler-integrationtests/src/test-refund-incremental.ts
b/packages/taler-integrationtests/src/test-refund-incremental.ts
index 3439f704..2e0f03f2 100644
--- a/packages/taler-integrationtests/src/test-refund-incremental.ts
+++ b/packages/taler-integrationtests/src/test-refund-incremental.ts
@@ -176,6 +176,14 @@ runTest(async (t: GlobalTestState) => {
).amount;
t.assertAmountEquals(raw, "TESTKUDOS:10");
+
+ const effective = Amounts.sum(
+ txs.transactions
+ .filter((x) => x.type === TransactionType.Refund)
+ .map((x) => x.amountEffective),
+ ).amount;
+
+ t.assertAmountEquals(effective, "TESTKUDOS:8.17");
}
await t.shutdown();
--
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: also check effective amount,
gnunet <=