fix insight tests
This commit is contained in:
parent
d838a29d02
commit
194913c561
2 changed files with 17 additions and 18 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue