also check effective amount
This commit is contained in:
parent
044b723657
commit
5f3d9835fa
@ -176,6 +176,14 @@ runTest(async (t: GlobalTestState) => {
|
|||||||
).amount;
|
).amount;
|
||||||
|
|
||||||
t.assertAmountEquals(raw, "TESTKUDOS:10");
|
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();
|
await t.shutdown();
|
||||||
|
Loading…
Reference in New Issue
Block a user