summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod/query_oplogreplay.js
diff options
context:
space:
mode:
authorJonathan Abrahams <jonathan@mongodb.com>2016-03-09 12:17:50 -0500
committerJonathan Abrahams <jonathan@mongodb.com>2016-03-09 12:18:14 -0500
commit4ae691e8edc87d0e3cfb633bb91c328426be007b (patch)
tree52079a593f54382ca13a2e741633eab1b6271893 /jstests/noPassthroughWithMongod/query_oplogreplay.js
parenta025d43f3ce2efc1fb1282a718f5d286fa0a4dc1 (diff)
downloadmongo-4ae691e8edc87d0e3cfb633bb91c328426be007b.tar.gz
SERVER-22468 Format JS code with approved style in jstests/
Diffstat (limited to 'jstests/noPassthroughWithMongod/query_oplogreplay.js')
-rw-r--r--jstests/noPassthroughWithMongod/query_oplogreplay.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/jstests/noPassthroughWithMongod/query_oplogreplay.js b/jstests/noPassthroughWithMongod/query_oplogreplay.js
index fc2760577bc..7d4e632f431 100644
--- a/jstests/noPassthroughWithMongod/query_oplogreplay.js
+++ b/jstests/noPassthroughWithMongod/query_oplogreplay.js
@@ -2,7 +2,7 @@
function test(t) {
t.drop();
- assert.commandWorked(t.getDB().createCollection(t.getName(), {capped: true, size: 16*1024}));
+ assert.commandWorked(t.getDB().createCollection(t.getName(), {capped: true, size: 16 * 1024}));
function makeTS(i) {
return Timestamp(1000, i);
@@ -23,11 +23,13 @@ function test(t) {
// 'ts' field is not top-level.
assert.throws(function() {
t.find({$or: [{ts: {$gt: makeTS(3)}}, {foo: 3}]})
- .addOption(DBQuery.Option.oplogReplay).next();
+ .addOption(DBQuery.Option.oplogReplay)
+ .next();
});
assert.throws(function() {
t.find({$nor: [{ts: {$gt: makeTS(4)}}, {foo: 4}]})
- .addOption(DBQuery.Option.oplogReplay).next();
+ .addOption(DBQuery.Option.oplogReplay)
+ .next();
});
// Predicate over 'ts' is not $gt or $gte.
@@ -61,5 +63,5 @@ var coll = db.jstests_query_oplogreplay;
coll.drop();
assert.commandWorked(coll.getDB().createCollection(coll.getName()));
var res = assert.throws(function() {
- coll.find({ts: {$gt: "abcd"}}).addOption(DBQuery.Option.oplogReplay).next();
- });
+ coll.find({ts: {$gt: "abcd"}}).addOption(DBQuery.Option.oplogReplay).next();
+});