Fix server test

This commit is contained in:
wltsmrz
2014-06-11 21:40:41 -07:00
parent 726b309085
commit 06108ffee3
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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_.+;/;