HDWallet: clarify test intention
This commit is contained in:
parent
3bce535e36
commit
749943cb4e
1 changed files with 3 additions and 3 deletions
|
@ -81,12 +81,12 @@ describe('HDWallet', function() {
|
||||||
})
|
})
|
||||||
|
|
||||||
it('fails for an invalid network type', function() {
|
it('fails for an invalid network type', function() {
|
||||||
var buffer = new HDWallet(seed).toBuffer()
|
var network = { bip32: { priv: 0x11111111, pub: 0x22222222 } }
|
||||||
buffer.writeUInt32BE(0x00000000, 0)
|
var buffer = new HDWallet(seed, network).toBuffer()
|
||||||
|
|
||||||
assert.throws(function() {
|
assert.throws(function() {
|
||||||
HDWallet.fromBuffer(buffer)
|
HDWallet.fromBuffer(buffer)
|
||||||
}, /Could not find version 0/)
|
}, /Could not find version 22222222/)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue