[Groonga-commit] droonga/express-droonga at 2ee098c [master] Add a test for string style group_by[key][attributes]

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed May 28 12:41:54 JST 2014


YUKI Hiroshi	2014-05-28 12:41:54 +0900 (Wed, 28 May 2014)

  New Revision: 2ee098c3e70e77e3375797b51dc13097bf9c252d
  https://github.com/droonga/express-droonga/commit/2ee098c3e70e77e3375797b51dc13097bf9c252d

  Message:
    Add a test for string style group_by[key][attributes]

  Modified files:
    test/rest-request-builder.test.js

  Modified: test/rest-request-builder.test.js (+13 -0)
===================================================================
--- test/rest-request-builder.test.js    2014-05-28 12:37:13 +0900 (13dbdc2)
+++ test/rest-request-builder.test.js    2014-05-28 12:41:54 +0900 (a18049c)
@@ -355,6 +355,19 @@ suite('building message from REST adapter request', function() {
           assert.equalJSON(buildGroupByQuery(query).output.attributes,
                            expected);
         });
+
+        test('simple string', function() {
+          var query = {
+            key: '_key',
+            attributes: '_key,_nsubrecs'
+          };
+          var expected = [
+            '_key',
+            '_nsubrecs'
+          ];
+          assert.equalJSON(buildGroupByQuery(query).output.attributes,
+                           expected);
+        });
       });
     });
   });
-------------- next part --------------
HTML����������������������������...
Download 



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