diff options
author | Mike Grundy <michael.grundy@10gen.com> | 2016-02-04 12:29:01 -0500 |
---|---|---|
committer | Mike Grundy <michael.grundy@10gen.com> | 2016-02-09 13:41:02 -0500 |
commit | 3bed8596d18275d1561e4f44f1f0bd72c1e038f1 (patch) | |
tree | 788eaed3c7a692a424f080d16a8841dc8afa3c13 /jstests/core/batch_write_command_update.js | |
parent | 985e2a0be95709ac064c57f0a9bb385a55937285 (diff) | |
download | mongo-3bed8596d18275d1561e4f44f1f0bd72c1e038f1.tar.gz |
SERVER-22341 fix jslint errors in jstests/core with eslint --fix
Conflicts:
jstests/core/count_hint.js
Diffstat (limited to 'jstests/core/batch_write_command_update.js')
-rw-r--r-- | jstests/core/batch_write_command_update.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/jstests/core/batch_write_command_update.js b/jstests/core/batch_write_command_update.js index 255c23d877e..00964131efe 100644 --- a/jstests/core/batch_write_command_update.js +++ b/jstests/core/batch_write_command_update.js @@ -5,7 +5,7 @@ var coll = db.getCollection( "batch_write_update" ); coll.drop(); -assert(coll.getDB().getMongo().useWriteCommands(), "test is not running with write commands") +assert(coll.getDB().getMongo().useWriteCommands(), "test is not running with write commands"); var request; var result; @@ -19,13 +19,13 @@ function resultOK( result ) { !( 'errmsg' in result ) && !( 'errInfo' in result ) && !( 'writeErrors' in result ); -}; +} function resultNOK( result ) { return !result.ok && typeof( result.code ) == 'number' && typeof( result.errmsg ) == 'string'; -}; +} // EACH TEST BELOW SHOULD BE SELF-CONTAINED, FOR EASIER DEBUGGING @@ -51,7 +51,7 @@ assert.eq(0, result.upserted[0].index); // Count the upserted doc var upsertedId = result.upserted[0]._id; assert.eq(1, coll.count({_id: upsertedId})); -assert.eq(0, result.nModified, "missing/wrong nModified") +assert.eq(0, result.nModified, "missing/wrong nModified"); // // Single document upsert, write concern specified, no ordered specified @@ -69,7 +69,7 @@ assert.eq(0, result.upserted[0].index); // Count the upserted doc upsertedId = result.upserted[0]._id; assert.eq(1, coll.count({_id: upsertedId})); -assert.eq(0, result.nModified, "missing/wrong nModified") +assert.eq(0, result.nModified, "missing/wrong nModified"); // // Single document upsert, write concern specified, ordered = true @@ -88,7 +88,7 @@ assert.eq(0, result.upserted[0].index); // Count the upserted doc upsertedId = result.upserted[0]._id; assert.eq(1, coll.count({_id: upsertedId})); -assert.eq(0, result.nModified, "missing/wrong nModified") +assert.eq(0, result.nModified, "missing/wrong nModified"); // // Single document upsert, write concern 0 specified, ordered = true |