[Groonga-commit] groonga/express-kotoumi [master] test: Simulate function call for callback correctly

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Feb 8 19:10:00 JST 2013


YUKI Hiroshi	2013-02-08 19:10:00 +0900 (Fri, 08 Feb 2013)

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

  Log:
    test: Simulate function call for callback correctly

  Modified files:
    test/express-adaptor.test.js

  Modified: test/express-adaptor.test.js (+2 -2)
===================================================================
--- test/express-adaptor.test.js    2013-02-08 19:04:41 +0900 (2a57493)
+++ test/express-adaptor.test.js    2013-02-08 19:10:00 +0900 (2fc135d)
@@ -209,11 +209,11 @@ suite('Adaption for express application', function() {
         .next(function() {
           connection.assertThrows();
           var envelope = {
-            type:       'search.result',
             statusCode: 200,
+            type:       'search.result',
             body:       { searchResult: true}
           };
-          onResponse.trigger(envelope);
+          onResponse.trigger(null, envelope);
         })
         .wait(0.01)
         .next(function() {
-------------- next part --------------
HTML����������������������������...
Download 



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