[Groonga-commit] groonga/gcs [master] Normalize datetime to 1970-01-01T00:00:00Z

Back to archive index

null+****@clear***** null+****@clear*****
2012年 6月 21日 (木) 17:18:35 JST


SHIMODA Hiroshi	2012-06-21 17:18:35 +0900 (Thu, 21 Jun 2012)

  New Revision: ba8e43fc2d87f2fc8ffa84b0ffddd4f2a1edc9a7
  https://github.com/groonga/gcs/commit/ba8e43fc2d87f2fc8ffa84b0ffddd4f2a1edc9a7

  Log:
    Normalize datetime to 1970-01-01T00:00:00Z

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

  Modified: test/api-configuration.test.js (+4 -3)
===================================================================
--- test/api-configuration.test.js    2012-06-21 17:12:57 +0900 (a28dded)
+++ test/api-configuration.test.js    2012-06-21 17:18:35 +0900 (2a019af)
@@ -119,9 +119,9 @@ suite('Configuration API', function() {
                             '</TextOptions>' +
                           '</Options>' +
                           '<Status>' +
-                            '<CreationDate>...</CreationDate>' +
+                            '<CreationDate>1970-01-01T00:00:00Z</CreationDate>' +
                             '<State>RequiresIndexDocuments</State>' +
-                            '<UpdateDate>...</UpdateDate>' +
+                            '<UpdateDate>1970-01-01T00:00:00Z</UpdateDate>' +
                             '<UpdateVersion>0</UpdateVersion>' +
                           '</Status>' +
                         '</IndexField>' +
@@ -134,7 +134,8 @@ suite('Configuration API', function() {
         var actual = {
               statusCode: response.statusCode,
               body: response.body
-                      .replace(/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z/g, '...')
+                      .replace(/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z/g,
+                               '1970-01-01T00:00:00Z')
             };
         assert.deepEqual(actual, expected);
 
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Download 



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