Skip to content

Commit

Permalink
fixed various test problems
Browse files Browse the repository at this point in the history
  • Loading branch information
maraoz committed Feb 18, 2014
1 parent 0096238 commit 1dcd941
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions bitcore.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down
4 changes: 3 additions & 1 deletion test/test.Connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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);
});
Expand Down

0 comments on commit 1dcd941

Please sign in to comment.