also check effective amount

This commit is contained in:
Florian Dold 2020-09-01 20:45:20 +05:30
parent 044b723657
commit 5f3d9835fa
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -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();