[Groonga-commit] droonga/express-droonga at 984bc23 [master] Allow to modify envelope parameters

Back to archive index

YUKI Hiroshi null+****@clear*****
Mon Jan 6 12:08:35 JST 2014


YUKI Hiroshi	2014-01-06 12:08:35 +0900 (Mon, 06 Jan 2014)

  New Revision: 984bc2340d9565571ce92a08b937f01e34bf96f9
  https://github.com/droonga/express-droonga/commit/984bc2340d9565571ce92a08b937f01e34bf96f9

  Message:
    Allow to modify envelope parameters

  Modified files:
    test/test-utils.js

  Modified: test/test-utils.js (+6 -1)
===================================================================
--- test/test-utils.js    2014-01-06 12:07:42 +0900 (fdefee1)
+++ test/test-utils.js    2014-01-06 12:08:35 +0900 (81103ed)
@@ -288,8 +288,13 @@ function createBackend() {
     });
   };
 
-  backend.sendMessage = function(type, body) {
+  backend.sendMessage = function(type, body, options) {
     var response = createEnvelope(type, body);
+    if (options && typeof options == 'object') {
+      Object.keys(options).forEach(function(key) {
+        response[key] = options[key];
+      });
+    }
     return sendPacketTo(createPacket(response), testReceivePort)
   };
   backend.sendResponse = function(request, type, body) {
-------------- next part --------------
HTML����������������������������...
Descargar 



More information about the Groonga-commit mailing list
Back to archive index