Skip to content

Commit ab66c98

Browse files
committed
tests: check HDNode stores keyPair/chainCode
1 parent 7b0060d commit ab66c98

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/hdnode.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ describe('HDNode', function () {
2323
chainCode.fill(1)
2424
})
2525

26+
it('stores the keyPair/chainCode directly', function () {
27+
var hd = new HDNode(keyPair, chainCode)
28+
29+
assert.strictEqual(hd.keyPair, keyPair)
30+
assert.strictEqual(hd.chainCode, chainCode)
31+
})
32+
2633
it('has a default depth/index of 0', function () {
2734
var hd = new HDNode(keyPair, chainCode)
2835

0 commit comments

Comments
 (0)