From edda8ea7236fb2c0225144702c18e217c0ece3ae Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Mon, 9 Feb 2015 16:06:18 -0300 Subject: [PATCH] fix broken tests --- lib/hdprivatekey.js | 2 -- test/hdprivatekey.js | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/hdprivatekey.js b/lib/hdprivatekey.js index 0b58ec5..7cc7e3f 100644 --- a/lib/hdprivatekey.js +++ b/lib/hdprivatekey.js @@ -106,7 +106,6 @@ HDPrivateKey._getDerivationIndexes = function(path) { } var indexes = steps.slice(1).map(function(step) { - console.log(step); var isHardened = step.slice(-1) === '\''; if (isHardened) { step = step.slice(0, -1); @@ -122,7 +121,6 @@ HDPrivateKey._getDerivationIndexes = function(path) { return index; }); - console.log(indexes); return _.any(indexes, isNaN) ? null : indexes; }; diff --git a/test/hdprivatekey.js b/test/hdprivatekey.js index 1e50316..4a0d20b 100644 --- a/test/hdprivatekey.js +++ b/test/hdprivatekey.js @@ -222,7 +222,6 @@ describe('HDPrivate key interface', function() { 'K', 'm/', 'm/12asd', - HDPrivateKey.MaxHardened, 'm/1/2//3' ]; @@ -237,7 +236,7 @@ describe('HDPrivate key interface', function() { var indexes; indexes = HDPrivateKey._getDerivationIndexes('m/-1/12'); - indexes.should.eql([-1, 12]); + expect(indexes).to.equal(null); indexes = HDPrivateKey._getDerivationIndexes('m/0/12/12\''); indexes.should.eql([0, 12, HDPrivateKey.Hardened + 12]);