Adding tests for isNeutered
This commit is contained in:
parent
3df2976e2c
commit
bfd294c31e
1 changed files with 4 additions and 0 deletions
|
@ -192,6 +192,7 @@ describe('HDNode', function () {
|
|||
|
||||
assert.strictEqual(hd.toBase58(), f.master.base58)
|
||||
assert.strictEqual(hd.keyPair.network, network)
|
||||
assert.strictEqual(hd.isNeutered(), true)
|
||||
})
|
||||
})
|
||||
|
||||
|
@ -202,6 +203,7 @@ describe('HDNode', function () {
|
|||
|
||||
assert.strictEqual(hd.toBase58(), f.master.base58Priv)
|
||||
assert.strictEqual(hd.keyPair.network, network)
|
||||
assert.strictEqual(hd.isNeutered(), false)
|
||||
})
|
||||
})
|
||||
|
||||
|
@ -248,6 +250,8 @@ describe('HDNode', function () {
|
|||
assert.strictEqual(hdn.chainCode, hd.chainCode)
|
||||
assert.strictEqual(hdn.depth, hd.depth)
|
||||
assert.strictEqual(hdn.index, hd.index)
|
||||
assert.strictEqual(hdn.isNeutered(), true)
|
||||
assert.strictEqual(hd.isNeutered(), false)
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue