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/profile3.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/profile3.js')
-rw-r--r-- | jstests/core/profile3.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/jstests/core/profile3.js b/jstests/core/profile3.js index 0e1a731f41d..96b2314ab87 100644 --- a/jstests/core/profile3.js +++ b/jstests/core/profile3.js @@ -12,7 +12,7 @@ profileCursor = function( query ) { query = query || {}; Object.extend( query, { user: username + "@" + db.getName() } ); return db.system.profile.find( query ); -} +}; try { username = "jstests_profile3_user"; @@ -22,7 +22,7 @@ try { db.setProfilingLevel(0); db.system.profile.drop(); - assert.eq( 0 , profileCursor().count() ) + assert.eq( 0 , profileCursor().count() ); db.setProfilingLevel(2); @@ -34,14 +34,14 @@ try { t.update( { x : 1 }, {$inc:{a:1}} ); t.update( { x : 0 }, {$inc:{a:1}} ); - profileCursor().forEach( printjson ) + profileCursor().forEach( printjson ); db.setProfilingLevel(0); - assert.eq(profileCursor({nMatched: {$exists:1}}).count(), 3) - assert.eq(profileCursor({nMatched: 1}).count(), 2) - assert.eq(profileCursor({nMatched: 0}).count(), 1) + assert.eq(profileCursor({nMatched: {$exists:1}}).count(), 3); + assert.eq(profileCursor({nMatched: 1}).count(), 2); + assert.eq(profileCursor({nMatched: 0}).count(), 1); if ( db.serverStatus().storageEngine.name == "mmapv1" ) { assert.eq(profileCursor({nmoved: 1}).count(), 1 ); } |