mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 23:08:07 +01:00
Update legacy-wallet.test.js
This commit is contained in:
parent
67af2b775c
commit
4d17578298
1 changed files with 7 additions and 9 deletions
|
@ -185,20 +185,18 @@ describe('SegwitBech32Wallet', function () {
|
|||
assert.ok(!w.weOwnAddress('garbage'));
|
||||
assert.ok(!w.weOwnAddress(false));
|
||||
await w.fetchTransactions();
|
||||
assert.strictEqual(w.getTransactions().length, 1);
|
||||
|
||||
for (const tx of w.getTransactions()) {
|
||||
assert.ok(tx.hash);
|
||||
assert.strictEqual(tx.value, 100000);
|
||||
assert.ok(tx.received);
|
||||
assert.ok(tx.confirmations > 1);
|
||||
}
|
||||
assert.strictEqual(w.getTransactions().length, 2);
|
||||
const tx = w.getTransactions()[1];
|
||||
assert.ok(tx.hash);
|
||||
assert.strictEqual(tx.value, 100000);
|
||||
assert.ok(tx.received);
|
||||
assert.ok(tx.confirmations > 1);
|
||||
|
||||
const tx0 = w.getTransactions()[0];
|
||||
assert.ok(tx0.inputs);
|
||||
assert.ok(tx0.inputs.length === 1);
|
||||
assert.ok(tx0.outputs);
|
||||
assert.ok(tx0.outputs.length === 3);
|
||||
assert.ok(tx0.outputs.length === 2);
|
||||
|
||||
assert.ok(w.weOwnTransaction('49944e90fe917952e36b1967cdbc1139e60c89b4800b91258bf2345a77a8b888'));
|
||||
assert.ok(!w.weOwnTransaction('825c12f277d1f84911ac15ad1f41a3de28e9d906868a930b0a7bca61b17c8881'));
|
||||
|
|
Loading…
Add table
Reference in a new issue