Navigation Menu

Skip to content

Commit

Permalink
Fix broken command gcs-configure-fields
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 13, 2012
1 parent ca5c70d commit 788afac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bin/gcs-configure-fields
Expand Up @@ -66,10 +66,10 @@ if (commandLine.options.delete) {
case 'result': field.resultEnabled = true; break;
case 'noresult': field.resultEnabled = false; break;
default:
thro new Error('invalid field option ' + commandLine.options.option);
throw new Error('invalid field option ' + commandLine.options.option);
}
} catch(error) {
console.log(error.message);
console.log((error.message || error).toString());
return process.exit(1);
}
}
Expand Down
6 changes: 3 additions & 3 deletions test/gcs-commands.test.js
Expand Up @@ -536,7 +536,7 @@ suite('gcs-configure-fields', function() {
});
}

test('change option of text field', function() {
test('change option of text field', function(done) {
testConfigureFieldOptions('text', {
search: 'error',
nosearch: 'error',
Expand All @@ -547,7 +547,7 @@ suite('gcs-configure-fields', function() {
}, done);
});

test('change option of uint field', function() {
test('change option of uint field', function(done) {
testConfigureFieldOptions('uint', {
search: 'error',
nosearch: 'error',
Expand All @@ -558,7 +558,7 @@ suite('gcs-configure-fields', function() {
}, done);
});

test('change option of literal field', function() {
test('change option of literal field', function(done) {
testConfigureFieldOptions('literal', {
search: 'Search',
nosearch: '',
Expand Down

0 comments on commit 788afac

Please sign in to comment.