diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-09-08 19:54:23 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-09-08 19:54:30 +0530 |
commit | 043a5f89fe020bbb55170a9fc355c3d699ad8761 (patch) | |
tree | 1c033feecf6b276f8dc69e8ddb70ee260d675bb8 /packages/taler-integrationtests | |
parent | b9e43e652e606706a81f39d4f888477580de79b0 (diff) | |
download | wallet-core-043a5f89fe020bbb55170a9fc355c3d699ad8761.tar.xz |
tipping transaction list entry, integration test and DB simplifications
Diffstat (limited to 'packages/taler-integrationtests')
-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"); }); |