[Groonga-commit] groonga/gcs [master] Use shorthand

Back to archive index

SHIMODA Hiroshi null+****@clear*****
Mon Aug 13 11:49:49 JST 2012


SHIMODA Hiroshi	2012-08-13 11:49:49 +0900 (Mon, 13 Aug 2012)

  New Revision: 9d5d4a147eebbfca48caff6bd3f73e43f68bd00a
  https://github.com/groonga/gcs/commit/9d5d4a147eebbfca48caff6bd3f73e43f68bd00a

  Log:
    Use shorthand

  Modified files:
    test/database-index-field.test.js

  Modified: test/database-index-field.test.js (+3 -6)
===================================================================
--- test/database-index-field.test.js    2012-08-13 11:43:23 +0900 (83c770c)
+++ test/database-index-field.test.js    2012-08-13 11:49:49 +0900 (acaecc3)
@@ -245,8 +245,7 @@ suite('database', function() {
       });
 
       test('deleteSync for text field', function() {
-        var field = new IndexField('name', domain);
-        field.type = 'text';
+        var field = new IndexField('name', domain).setType('text');
         field.createSync();
         assert.isTrue(field.exists());
 
@@ -290,8 +289,7 @@ suite('database', function() {
       });
 
       test('deleteSync for uint field', function() {
-        var field = new IndexField('age', domain);
-        field.type = 'uint';
+        var field = new IndexField('age', domain).setType('uint');
         field.createSync();
         assert.isTrue(field.exists());
 
@@ -336,8 +334,7 @@ suite('database', function() {
       });
 
       test('deleteSync for literal field', function() {
-        var field = new IndexField('product', domain);
-        field.type = 'literal';
+        var field = new IndexField('product', domain).setType('literal');
         field.createSync();
         assert.isTrue(field.exists());
 
-------------- next part --------------
HTML����������������������������...
Download 



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