integration: throw meaningful errors if no unspent is found

This commit is contained in:
Daniel Cousens 2015-08-25 14:11:49 +10:00
parent 845c1dc199
commit 3be5dc88a1
2 changed files with 10 additions and 2 deletions
test/integration

View file

@ -51,6 +51,7 @@ describe('bitcoinjs-lib (multisig)', function () {
// use the oldest unspent
var unspent = unspents.pop()
if (!unspent) throw new Error('Faucet didn\'t provide an unspent')
// make a random destination address
var targetAddress = bitcoin.ECPair.makeRandom({