mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
Fix server test
This commit is contained in:
@@ -440,7 +440,7 @@ Server.prototype._handleClose = function() {
|
||||
this.emit('socket_close');
|
||||
this._setState('offline');
|
||||
|
||||
function noOp() {};
|
||||
function noOp(){};
|
||||
|
||||
// Prevent additional events from this socket
|
||||
ws.onopen = ws.onerror = ws.onclose = ws.onmessage = noOp;
|
||||
|
||||
@@ -433,7 +433,7 @@ describe('Server', function() {
|
||||
|
||||
server._handleClose();
|
||||
|
||||
var noOp = (function noOp() {}).toString();
|
||||
var noOp = (function noOp(){}).toString();
|
||||
|
||||
var coverageRE = /__cov_.+;/;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user