Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions test/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ describe('Wallet', function() {
describe('setUnspentOutputs', function() {
var utxo
var expectedOutputKey
var wallet

beforeEach(function() {
utxo = {
Expand Down Expand Up @@ -632,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)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this is just a clean-up and unrelated to the kill sinon specific change?
Edit: Just read your commit comment where you mentioned it :) Cool

assert.equal(tx1.outs.length, 1)

var tx2 = wallet.createTx(to, value - 547)
assert.equal(tx2.outs.length, 2)
})
})
})
Expand Down