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