tests: bitcoin core tests should act only the public API

This commit is contained in:
Daniel Cousens 2014-10-15 23:06:04 +11:00
parent 22c67adcf9
commit 4854e4ad0a

View file

@ -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)