[Groonga-commit] groonga/gcs [master] Fix expected patterns for IndexDocuments response

Back to archive index

null+****@clear***** null+****@clear*****
2012年 7月 18日 (水) 20:50:31 JST


SHIMODA Hiroshi	2012-07-18 20:50:31 +0900 (Wed, 18 Jul 2012)

  New Revision: 96b98c65eaa5f377c82eac7c54ceee5be88b3ab0
  https://github.com/groonga/gcs/commit/96b98c65eaa5f377c82eac7c54ceee5be88b3ab0

  Log:
    Fix expected patterns for IndexDocuments response

  Modified files:
    test/api-configuration.test.js

  Modified: test/api-configuration.test.js (+5 -4)
===================================================================
--- test/api-configuration.test.js    2012-07-18 20:48:05 +0900 (547555d)
+++ test/api-configuration.test.js    2012-07-18 20:50:31 +0900 (4c48bf9)
@@ -137,9 +137,9 @@ function PATTERN_IndexDocumentsResponse(members) {
         FieldNames: (function() {
           var pattern = {};
           members.forEach(function(member, index) {
-            pattern[index] = { member: '' };
+            pattern[index] = '';
           });
-          return pattern;
+          return { member: pattern };
         })()
       },
       ResponseMetadata: PATTERN_ResponseMetadata
@@ -582,12 +582,13 @@ suite('Configuration API', function() {
                            body: PATTERN_IndexDocumentsResponse(expectedFieldNames) });
         var fieldNames = response.body.IndexDocumentsResponse
                                       .IndexDocumentsResult
-                                      .FieldNames;
+                                      .FieldNames
+                                      .member;
         fieldNames = (function() {
           var names = [];
           for (var i in fieldNames) {
             if (fieldNames.hasOwnProperty(i))
-              names.push(fieldNames[i].member);
+              names.push(fieldNames[i]);
           }
           return names;
         })();
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Download 



Groonga-commit メーリングリストの案内
Back to archive index