From 4854e4ad0ac2ad8a17e89d5b19b881048619dbab Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Wed, 15 Oct 2014 23:06:04 +1100 Subject: [PATCH] tests: bitcoin core tests should act only the public API --- test/bitcoin.core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/bitcoin.core.js b/test/bitcoin.core.js index 2dc76fc..4b716d9 100644 --- a/test/bitcoin.core.js +++ b/test/bitcoin.core.js @@ -1,5 +1,4 @@ var assert = require('assert') -var networks = require('../src/networks') var base58 = require('bs58') //var base58check = require('bs58check') @@ -7,6 +6,7 @@ var base58 = require('bs58') var Bitcoin = require('../') var Address = Bitcoin.Address var base58check = Bitcoin.base58check +var networks = Bitcoin.networks var ECKey = Bitcoin.ECKey var ECSignature = Bitcoin.ECSignature var Transaction = Bitcoin.Transaction @@ -191,7 +191,7 @@ describe('Bitcoin-core', function() { if (!e.message.match(/not yet supported/)) throw e } - if (actualHash != undefined) { + if (actualHash !== undefined) { // Test data is big-endian Array.prototype.reverse.call(actualHash)