tests: add test for non-matching network
This commit is contained in:
parent
8bdfa881c9
commit
1ac79b8327
2 changed files with 8 additions and 1 deletions
test
|
@ -135,7 +135,9 @@ describe('HDNode', function() {
|
|||
fixtures.invalid.fromBase58.forEach(function(f) {
|
||||
it('throws on ' + f.string, function() {
|
||||
assert.throws(function() {
|
||||
HDNode.fromBase58(f.string)
|
||||
var network = networks[f.network]
|
||||
|
||||
HDNode.fromBase58(f.string, network)
|
||||
}, new RegExp(f.exception))
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue