Fix a bug in websocket-test.js referencing done() not declared in test() function signature, was causing failure of subsequent test suite, due to mocha's enveloped exception handling style

This commit is contained in:
Nicholas Dudfield
2013-10-24 12:15:49 +07:00
committed by Vinnie Falco
parent 3b19310252
commit aabd6980ac
3 changed files with 7 additions and 4 deletions

View File

@@ -1 +1,5 @@
--reporter spec --compilers coffee:coffee-script --ui tdd --timeout 10000 --slow 600
--reporter spec
--compilers coffee:coffee-script
--ui tdd
--timeout 10000
--slow 600

View File

@@ -2,4 +2,3 @@
# flags set in mocha.opts
mocha test/*-test.{js,coffee}

View File

@@ -28,7 +28,7 @@ suite('WebSocket connection', function() {
}
});
test('WebSocket connect and disconnect', function() {
test('WebSocket connect and disconnect', function(done) {
var alpha = Remote.from_config("alpha");
alpha.on('connected', function () {