diff options
Diffstat (limited to 'packages/taler-integrationtests/src/test-tipping.ts')
-rw-r--r-- | packages/taler-integrationtests/src/test-tipping.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/taler-integrationtests/src/test-tipping.ts b/packages/taler-integrationtests/src/test-tipping.ts index f7840f5da..4c080293e 100644 --- a/packages/taler-integrationtests/src/test-tipping.ts +++ b/packages/taler-integrationtests/src/test-tipping.ts @@ -109,4 +109,13 @@ runTest(async (t: GlobalTestState) => { console.log(bal); t.assertAmountEquals(bal.balances[0].available, "TESTKUDOS:4.85"); + + const txns = await wallet.getTransactions(); + + console.log("Transactions:", JSON.stringify(txns, undefined, 2)); + + t.assertDeepEqual(txns.transactions[0].type, "tip"); + t.assertDeepEqual(txns.transactions[0].pending, false); + t.assertAmountEquals(txns.transactions[0].amountEffective, "TESTKUDOS:4.85"); + t.assertAmountEquals(txns.transactions[0].amountRaw, "TESTKUDOS:5.0"); }); |