diff options
author | Jonathan Abrahams <jonathan@mongodb.com> | 2016-03-09 12:17:50 -0500 |
---|---|---|
committer | Jonathan Abrahams <jonathan@mongodb.com> | 2016-03-09 12:18:14 -0500 |
commit | 4ae691e8edc87d0e3cfb633bb91c328426be007b (patch) | |
tree | 52079a593f54382ca13a2e741633eab1b6271893 /jstests/sharding/find_getmore_cmd.js | |
parent | a025d43f3ce2efc1fb1282a718f5d286fa0a4dc1 (diff) | |
download | mongo-4ae691e8edc87d0e3cfb633bb91c328426be007b.tar.gz |
SERVER-22468 Format JS code with approved style in jstests/
Diffstat (limited to 'jstests/sharding/find_getmore_cmd.js')
-rw-r--r-- | jstests/sharding/find_getmore_cmd.js | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/jstests/sharding/find_getmore_cmd.js b/jstests/sharding/find_getmore_cmd.js index f47201825ee..52fc6085507 100644 --- a/jstests/sharding/find_getmore_cmd.js +++ b/jstests/sharding/find_getmore_cmd.js @@ -28,11 +28,8 @@ st.ensurePrimaryShard(db.getName(), "shard0000"); db.adminCommand({shardCollection: coll.getFullName(), key: {_id: 1}}); assert.commandWorked(db.adminCommand({split: coll.getFullName(), middle: {_id: 0}})); - assert.commandWorked(db.adminCommand({ - moveChunk: coll.getFullName(), - find: {_id: 1}, - to: "shard0001" - })); + assert.commandWorked( + db.adminCommand({moveChunk: coll.getFullName(), find: {_id: 1}, to: "shard0001"})); // Find with no options. cmdRes = db.runCommand({find: coll.getName()}); @@ -131,11 +128,8 @@ // User projection on $sortKey is illegal. cmdRes = db.runCommand({find: coll.getName(), projection: {$sortKey: 1}, sort: {_id: 1}}); assert.commandFailed(cmdRes); - cmdRes = db.runCommand({ - find: coll.getName(), - projection: {$sortKey: {$meta: 'sortKey'}}, - sort: {_id: 1} - }); + cmdRes = db.runCommand( + {find: coll.getName(), projection: {$sortKey: {$meta: 'sortKey'}}, sort: {_id: 1}}); assert.commandFailed(cmdRes); // User should be able to issue a sortKey meta-projection, as long as it's not on the reserved |