Renaming Path to Bip32Path, invalid to fixtures
Only thing I haven't been able to do is to add "undefined" to fixtures. So I could not properly test that node.derivePath() properly fails as it should. However, I added "null" there, and "null" and "undefined" behave in similar way in JavaScript, so that should catch that.
This commit is contained in:
parent
d2b43f1dfe
commit
6a74eb6993
4 changed files with 41 additions and 63 deletions
src
|
@ -292,7 +292,7 @@ HDNode.prototype.isNeutered = function () {
|
|||
}
|
||||
|
||||
HDNode.prototype.derivePath = function (path) {
|
||||
typeforce(types.Path, path)
|
||||
typeforce(types.Bip32Path, path)
|
||||
|
||||
var splitPath = path.split('/')
|
||||
if (splitPath[0] === 'm') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue