Navigation Menu

Skip to content

Commit

Permalink
Use shorthand
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 13, 2012
1 parent cc67fa3 commit 9d5d4a1
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions test/database-index-field.test.js
Expand Up @@ -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());

Expand Down Expand Up @@ -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());

Expand Down Expand Up @@ -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());

Expand Down

0 comments on commit 9d5d4a1

Please sign in to comment.