From 05cc484b53c57b48de1cd537461614d96ce3c7c9 Mon Sep 17 00:00:00 2001 From: Judah Schvimer Date: Tue, 19 Apr 2016 14:39:22 -0400 Subject: fix lint --- jstests/noPassthrough/count_helper_read_preference.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/jstests/noPassthrough/count_helper_read_preference.js b/jstests/noPassthrough/count_helper_read_preference.js index b888107ccd6..a049e586598 100644 --- a/jstests/noPassthrough/count_helper_read_preference.js +++ b/jstests/noPassthrough/count_helper_read_preference.js @@ -5,11 +5,15 @@ var commandsRan = []; // Create a new DB object backed by a mock connection. - function MockMongo() {}; + function MockMongo() { + } MockMongo.prototype = Mongo.prototype; MockMongo.prototype.runCommand = function(db, cmd, opts) { - commandsRan.push({db: db, cmd: cmd, opts:opts}); - return {ok: 1, n: 100}; + commandsRan.push({db: db, cmd: cmd, opts: opts}); + return { + ok: 1, + n: 100 + }; }; var db = new DB(new MockMongo(), "test"); @@ -31,10 +35,8 @@ // Check that we have wrapped the command and attached the read preference. assert.eq(commandsRan.length, 1); - assert.docEq(commandsRan[0].cmd, - {query: {count: "foo", - fields: {}, - query: {}}, - $readPreference: {mode: "secondary"}}); + assert.docEq( + commandsRan[0].cmd, + {query: {count: "foo", fields: {}, query: {}}, $readPreference: {mode: "secondary"}}); })(); -- cgit v1.2.1