From 1dcd9413312e720ce3b9cc649afd9fc017c94567 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Tue, 18 Feb 2014 13:22:27 -0300 Subject: [PATCH] fixed various test problems --- bitcore.js | 1 + test/test.Connection.js | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bitcore.js b/bitcore.js index a2c33ac..f9b9ce0 100644 --- a/bitcore.js +++ b/bitcore.js @@ -18,6 +18,7 @@ module.exports.Transaction = require('./Transaction'); module.exports.Peer = require('./Peer'); module.exports.Block = require('./Block'); module.exports.Connection = require('./Connection'); +module.exports.ScriptInterpreter = require('./ScriptInterpreter'); if (typeof process.versions === 'undefined') { diff --git a/test/test.Connection.js b/test/test.Connection.js index 0c568c0..d1be479 100644 --- a/test/test.Connection.js +++ b/test/test.Connection.js @@ -7,6 +7,7 @@ var should = chai.should(); var ConnectionModule = bitcore.Connection; var Connection; +var nop = function() {}; describe('Connection', function() { it('should initialze the main object', function() { @@ -17,7 +18,8 @@ describe('Connection', function() { should.exist(Connection); }); it('should be able to create instance', function() { - var mSocket, mPeer; + var mSocket = {server: null, addListener: nop}, + mPeer; var c = new Connection(mSocket, mPeer); should.exist(c); });