Navigation Menu

Skip to content

Commit

Permalink
Update tests for creating text field
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 9, 2012
1 parent 412fb43 commit fbadedf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/gcs-commands.test.js
Expand Up @@ -268,7 +268,7 @@ suite('gcs-configure-fields', function() {
setup(commonSetup);
teardown(commonTeardown);

function testCreateField(done, name, type) {
function testCreateField(done, name, type, options) {
new Domain('companies', context).createSync();
utils
.run('gcs-create-domain',
Expand All @@ -284,7 +284,7 @@ suite('gcs-configure-fields', function() {
message: result.output.stdout },
{ code: 0,
message: 'Updated 1 Index Field:\n' +
name + ' Active ' + type + ' ()\n' },
name + ' Active ' + type + ' (' + options + ')\n' },
result.output.stderr);

context.reopen();
Expand All @@ -301,13 +301,13 @@ suite('gcs-configure-fields', function() {
}

test('create text field', function(done) {
testCreateField(done, 'name', 'text');
testCreateField(done, 'name', 'text', 'Search Facet Result');
});
test('create uint field', function(done) {
testCreateField(done, 'age', 'uint');
testCreateField(done, 'age', 'uint', 'Search Result');
});
test('create literal field', function(done) {
testCreateField(done, 'product', 'literal');
testCreateField(done, 'product', 'literal', 'Search Facet Result');
});

function testDeleteField(done, name, type) {
Expand Down

0 comments on commit fbadedf

Please sign in to comment.