Script: adds missing exception regex

This commit is contained in:
Daniel Cousens 2014-05-29 16:06:08 +10:00
parent 8b3634c866
commit b05d17f904

View file

@ -22,7 +22,7 @@ describe('Script', function() {
})
it('throws an error when input is not an array', function() {
assert.throws(function(){ new Script({}) })
assert.throws(function(){ new Script({}) }, /Expected Array, got/)
})
})
@ -153,7 +153,7 @@ describe('Script', function() {
assert.throws(function() {
Script.createMultisigScriptSig(signatures.slice(1), redeemScript)
})
}, /Not enough signatures provided/)
})
})
})