YUKI Hiroshi
null+****@clear*****
Mon Jan 28 18:14:00 JST 2013
YUKI Hiroshi 2013-01-28 18:14:00 +0900 (Mon, 28 Jan 2013) New Revision: d1017e16ee0ff4dfd603c8f14075bb7cefa32cd4 https://github.com/groonga/express-kotoumi/commit/d1017e16ee0ff4dfd603c8f14075bb7cefa32cd4 Log: test: Call method of dynamically generated objects correctly Modified files: test/express-adaptor.test.js test/frontend-socket.io-handler.test.js Modified: test/express-adaptor.test.js (+3 -3) =================================================================== --- test/express-adaptor.test.js 2013-01-28 18:11:55 +0900 (c75a6ae) +++ test/express-adaptor.test.js 2013-01-28 18:14:00 +0900 (9edfb47) @@ -133,9 +133,6 @@ suite('Adaption for express application', function() { statusCode: 200, body: { searchResult: true } }); - clientSocket.on('search.result', function(data) { - clientReceiver.receive(data); - }); var application = express(); utils.setupServer(application) @@ -149,6 +146,9 @@ suite('Adaption for express application', function() { handlersFactory.assertThrows(); clientSocket = utils.createClientSocket(); + clientSocket.on('search.result', function(data) { + clientReceiver.receive(data); + }); }) .wait(0.01) .next(function() { Modified: test/frontend-socket.io-handler.test.js (+3 -3) =================================================================== --- test/frontend-socket.io-handler.test.js 2013-01-28 18:11:55 +0900 (5dc9809) +++ test/frontend-socket.io-handler.test.js 2013-01-28 18:14:00 +0900 (a87e784) @@ -61,9 +61,6 @@ suite('Socket.IO API', function() { statusCode: 200, body: { searchResult: true } }); - clientSocket.on('search.result', function(data) { - clientReceiver.receive(data); - }); var application = express(); utils.setupServer(application) @@ -74,6 +71,9 @@ suite('Socket.IO API', function() { }); clientSocket = utils.createClientSocket(); + clientSocket.on('search.result', function(data) { + clientReceiver.receive(data); + }); }) .wait(0.01) .next(function() { -------------- next part -------------- HTML����������������������������...ダウンロード