Kouhei Sutou
null+****@clear*****
Sun Jul 21 19:23:05 JST 2013
Kouhei Sutou 2013-07-21 19:23:05 +0900 (Sun, 21 Jul 2013) New Revision: 4bcc237e41b8a5f0da74806388fc3af024c2d590 https://github.com/groonga/express-droonga/commit/4bcc237e41b8a5f0da74806388fc3af024c2d590 Message: test: follow emit API change in socket.io interface Options object is accepted insted of extra suffix. Modified files: test/frontend/socket.io-adaptor.test.js Modified: test/frontend/socket.io-adaptor.test.js (+3 -2) =================================================================== --- test/frontend/socket.io-adaptor.test.js 2013-07-21 19:10:09 +0900 (8cc042b) +++ test/frontend/socket.io-adaptor.test.js 2013-07-21 19:23:05 +0900 (de06831) @@ -295,7 +295,7 @@ suite('Socket.IO API', function() { }); }); - test('event with suffix', function(done) { + test('event with options', function(done) { var clientReceiver; utils.setupApplication() .next(function(result) { @@ -311,7 +311,8 @@ suite('Socket.IO API', function() { .createClientSockets(1) .next(function(newClientSockets) { clientSockets = clientSockets.concat(newClientSockets); - clientSockets[0].emit('reqrep', 'extra', 'name', 'message'); + clientSockets[0].emit('reqrep', 'message', + { responseEvent: 'reqrep.extra.name' }); }).wait(0.01).next(function() { assert.deepEqual(backend.getBodies(), ['message']); -------------- next part -------------- HTML����������������������������...Download