diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-09-01 20:45:20 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-09-01 20:45:20 +0530 |
commit | 5f3d9835fa1d6174da87da3882221d186f5df1b6 (patch) | |
tree | c172880765d95952adb851398489f87e30302edd | |
parent | 044b7236572089b98a9f230499bb4cd9ad0342a3 (diff) |
also check effective amount
-rw-r--r-- | packages/taler-integrationtests/src/test-refund-incremental.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/taler-integrationtests/src/test-refund-incremental.ts b/packages/taler-integrationtests/src/test-refund-incremental.ts index 3439f7047..2e0f03f29 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(); |