tests: Wallet test was not comprehensive

This commit is contained in:
Daniel Cousens 2014-09-08 23:27:01 +10:00
parent 69dfd3204d
commit c3f8869386

View file

@ -633,9 +633,11 @@ describe('Wallet', function() {
})
it('skips change if it is not above dust threshold', function() {
var fee = 14570
var tx = wallet.createTx(to, value)
assert.equal(tx.outs.length, 1)
var tx1 = wallet.createTx(to, value - 546)
assert.equal(tx1.outs.length, 1)
var tx2 = wallet.createTx(to, value - 547)
assert.equal(tx2.outs.length, 2)
})
})
})