From ab66c983af2fc33f126d654c50d8b6a4f18ff0ab Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Thu, 7 May 2015 11:24:53 +1000 Subject: [PATCH] tests: check HDNode stores keyPair/chainCode --- test/hdnode.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/hdnode.js b/test/hdnode.js index 46833e8..30a07c8 100644 --- a/test/hdnode.js +++ b/test/hdnode.js @@ -23,6 +23,13 @@ describe('HDNode', function () { chainCode.fill(1) }) + it('stores the keyPair/chainCode directly', function () { + var hd = new HDNode(keyPair, chainCode) + + assert.strictEqual(hd.keyPair, keyPair) + assert.strictEqual(hd.chainCode, chainCode) + }) + it('has a default depth/index of 0', function () { var hd = new HDNode(keyPair, chainCode)