fix insight tests

This commit is contained in:
Matias Alejo Garcia 2014-09-09 22:21:42 -03:00
commit 194913c561
2 changed files with 17 additions and 18 deletions

View file

@ -30,9 +30,16 @@ FakeSocket.prototype.removeEventListener = function() {
return;
}
FakeSocket.prototype.destroy = function() {
this.connected = false;
this.removeAllListeners();
};
module.exports = FakeSocket;
FakeSocket.prototype.disconnect = function() {
this.destroy();
};
module.exports = FakeSocket;