YUKI Hiroshi
null+****@clear*****
Mon Jan 21 15:28:10 JST 2013
YUKI Hiroshi 2013-01-21 15:28:10 +0900 (Mon, 21 Jan 2013) New Revision: 850ec383f4564c600d554522f37fe64a56786d2d https://github.com/groonga/express-kotoumi/commit/850ec383f4564c600d554522f37fe64a56786d2d Log: Define mocked connection with expectations for "on" method Modified files: test/socket-api.test.js Modified: test/socket-api.test.js (+3 -0) =================================================================== --- test/socket-api.test.js 2013-01-21 15:27:47 +0900 (c633d9a) +++ test/socket-api.test.js 2013-01-21 15:28:10 +0900 (0883863) @@ -21,6 +21,9 @@ suite('Socket.IO API', function() { test('front to back', function() { var connection = nodemock + .mock('on') + .takes('message', function() {}) + .times(socketAdaptor.commands.length) .mock('emitMessage') .takes('search', { requestMessage: true }, function() {}); -------------- next part -------------- HTML����������������������������...Download