[Groonga-commit] groonga/express-kotoumi [master] test: Remove codes to mock behaviors around "message" events from the backend

Zurück zum Archiv-Index

YUKI Hiroshi null+****@clear*****
Thu Feb 7 17:51:38 JST 2013


YUKI Hiroshi	2013-02-07 17:51:38 +0900 (Thu, 07 Feb 2013)

  New Revision: 4c52f6c8aa4cfa9df342a25b18f79741e530c4a3
  https://github.com/groonga/express-kotoumi/commit/4c52f6c8aa4cfa9df342a25b18f79741e530c4a3

  Log:
    test: Remove codes to mock behaviors around "message" events from the backend

  Modified files:
    test/test-utils.js

  Modified: test/test-utils.js (+0 -8)
===================================================================
--- test/test-utils.js    2013-02-07 17:50:16 +0900 (a3ad42c)
+++ test/test-utils.js    2013-02-07 17:51:38 +0900 (659736c)
@@ -152,12 +152,6 @@ function createMockedBackendConnection() {
         .ctrl(1, onMessageControllers[command]);
   });
 
-  onMessageControllers.message = {};
-  connection = connection
-    .mock('on')
-      .takes('message', function() {})
-      .ctrl(1, onMessageControllers.message);
-
   onMessageControllers.error = {};
   connection = connection
     .mock('on')
@@ -184,8 +178,6 @@ exports.createStubbedBackendConnection = createStubbedBackendConnection;
 function readyToDestroyMockedConnection(connection) {
   connection = connection
     .mock('removeListener')
-      .takes('message', function() {})
-    .mock('removeListener')
       .takes('error', function() {});
   return connection;
 }
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index