Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add cb to test

  • Loading branch information...
commit fc3757530011653b043569b21e54fd6fa2fbaf9a 1 parent fdacc1f
@tedsuo tedsuo authored
Showing with 5 additions and 0 deletions.
  1. +1 −0  test/transactor.js
  2. +4 −0 transactor.js
View
1  test/transactor.js
@@ -23,6 +23,7 @@ describe('Transactor', function(){
assert.equal(channel,'channel_1');
assert.equal(data,test_data);
assert.isFunction(cb);
+ cb(null,data);
done();
});
socket.emit('data',test_data);
View
4 transactor.js
@@ -45,3 +45,7 @@ Transactor.prototype.addSocket = function(channel,socket){
Transactor.prototype.onTransaction = function(transaction_handler){
this.transaction_handler = transaction_handler;
};
+
+Transactor.prototype.tellOthers = function(){
+ // foooooo
+};
Please sign in to comment.
Something went wrong with that request. Please try again.