HDWallet: adds missing exception regex

This commit is contained in:
Daniel Cousens 2014-05-29 16:05:04 +10:00
parent 7494a146a6
commit 8b3634c866

View file

@ -130,7 +130,7 @@ describe('HDWallet', function() {
})
it('throws an exception when unknown network type is passed in', function() {
assert.throws(function() { new HDWallet(new Buffer('foobar'), 'doge') })
assert.throws(function() { new HDWallet(new Buffer('foobar'), 'doge') }, /Unknown network: doge/)
})
it('throws an exception with bad network type using fromBuffer', function() {