Skip to content

Commit c3f8869

Browse files
committed
tests: Wallet test was not comprehensive
1 parent 69dfd32 commit c3f8869

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/wallet.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -633,9 +633,11 @@ describe('Wallet', function() {
633633
})
634634

635635
it('skips change if it is not above dust threshold', function() {
636-
var fee = 14570
637-
var tx = wallet.createTx(to, value)
638-
assert.equal(tx.outs.length, 1)
636+
var tx1 = wallet.createTx(to, value - 546)
637+
assert.equal(tx1.outs.length, 1)
638+
639+
var tx2 = wallet.createTx(to, value - 547)
640+
assert.equal(tx2.outs.length, 2)
639641
})
640642
})
641643
})

0 commit comments

Comments
 (0)