transactions order in test

This commit is contained in:
Florian Dold 2020-09-09 13:10:41 +05:30
parent 3d6a312f48
commit faac23f32b
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -75,7 +75,7 @@ runTest(async (t: GlobalTestState) => {
console.log(transactions);
const types = transactions.transactions.map((x) => x.type);
t.assertDeepEqual(types, ["withdrawal", "withdrawal"]);
const wtrans = transactions.transactions[0];
const wtrans = transactions.transactions[1];
t.assertTrue(wtrans.type === TransactionType.Withdrawal);
t.assertTrue(wtrans.pending);
}