Daniel Cousens
10 years ago
1 changed files with 0 additions and 22 deletions
@ -1,22 +0,0 @@ |
|||
/* global describe, it */ |
|||
|
|||
var assert = require('assert') |
|||
var networks = require('../src/networks') |
|||
|
|||
var HDNode = require('../src/hdnode') |
|||
|
|||
var fixtures = require('./fixtures/network') |
|||
|
|||
describe('networks', function () { |
|||
fixtures.forEach(function (f) { |
|||
var network = networks[f.network] |
|||
|
|||
Object.keys(f.bip32).forEach(function (name) { |
|||
var extb58 = f.bip32[name] |
|||
|
|||
it(extb58 + ' auto-detects ' + f.network, function () { |
|||
assert.strictEqual(HDNode.fromBase58(extb58).keyPair.network, network) |
|||
}) |
|||
}) |
|||
}) |
|||
}) |
Loading…
Reference in new issue