Navigation Menu

Skip to content

Commit

Permalink
Update tests for implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 9, 2012
1 parent 92848c6 commit 8fd755d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions test/api-batch.test.js
Expand Up @@ -191,8 +191,12 @@ suite('documents/batch API', function() {
adds: 0,
deletes: 0,
errors: [
{ message: 'invalidfield: The field "unknown1" is unknown.' },
{ message: 'invalidfield: The field "unknown2" is unknown.' },
{ message: 'invalidfield: The field "unknown1" is unknown. ' +
'(available: address,age,description,' +
'email_address,name,product)' },
{ message: 'invalidfield: The field "unknown2" is unknown. ' +
'(available: address,age,description,' +
'email_address,name,product)' },
{ message: 'invalidfield: The field "name" is null.' },
{ message: 'nofields: You must specify "fields".' },
{ message: 'emptyfields: You must specify one or more fields to "fields".' }
Expand Down
8 changes: 6 additions & 2 deletions test/batch-processor.test.js
Expand Up @@ -118,8 +118,12 @@ suite('batch/processor/Processor (instance methods)', function() {
adds: 0,
deletes: 0,
errors: [
{ message: 'invalidfield: The field "unknown1" is unknown.' },
{ message: 'invalidfield: The field "unknown2" is unknown.' },
{ message: 'invalidfield: The field "unknown1" is unknown. ' +
'(available: address,age,description,' +
'email_address,name,product)' },
{ message: 'invalidfield: The field "unknown2" is unknown. ' +
'(available: address,age,description,' +
'email_address,name,product)' },
{ message: 'invalidfield: The field "name" is null.' },
{ message: 'nofields: You must specify "fields".' },
{ message: 'emptyfields: You must specify one or more fields to "fields".' }
Expand Down

0 comments on commit 8fd755d

Please sign in to comment.