Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Abestanis committed Sep 3, 2024
1 parent d765b47 commit 1b6479c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/mocks/netMock.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,17 @@ class Socket extends EventEmitter {
}
}

setNoDelay(noDelay) {
return this;
}

end() {
this.emit("close", false);
}

write(data) {
this._data = data;
return true;
}

receive(buffer) {
Expand Down Expand Up @@ -55,6 +60,6 @@ class Server extends EventEmitter {

exports.Server = Server;

exports.createServer = function(options, connectionListener) {
exports.createServer = function (options, connectionListener) {
return new Server(options, connectionListener);
};

0 comments on commit 1b6479c

Please sign in to comment.