add new tests for new reconnect feature

This commit is contained in:
Manuel Araoz 2014-06-03 13:07:31 -03:00
commit 86016de19d
2 changed files with 98 additions and 56 deletions

View file

@ -7,8 +7,14 @@ function Network(opts) {
Network.parent=EventEmitter;
Network.prototype.start = function(openCallback, opts) {
Network.prototype.start = function(opts, cb) {
// start! :D
this.peer = {
options: {
token: "asd"
}
};
if (cb) cb();
};
Network.prototype.send = function(peerIds, data, cb) {
@ -24,4 +30,16 @@ Network.prototype.disconnect = function(cb) {
// disconect :c
};
Network.prototype.lockIncommingConnections = function() {
};
Network.prototype.getPeer = function() {
};
Network.prototype.connectToCopayers = function(cps) {
};
Network.prototype.isOnline = function() {
return true;
};
module.exports = require('soop')(Network);