From 4ae691e8edc87d0e3cfb633bb91c328426be007b Mon Sep 17 00:00:00 2001 From: Jonathan Abrahams Date: Wed, 9 Mar 2016 12:17:50 -0500 Subject: SERVER-22468 Format JS code with approved style in jstests/ --- jstests/replsets/initiate.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'jstests/replsets/initiate.js') diff --git a/jstests/replsets/initiate.js b/jstests/replsets/initiate.js index 41d53202f80..0afa0c85bcd 100644 --- a/jstests/replsets/initiate.js +++ b/jstests/replsets/initiate.js @@ -2,20 +2,19 @@ * Sanity check that initializing will fail with bad input. There are C++ unit tests for most bad * configs, so this is just seeing if it fails when it's supposed to. */ -(function () { +(function() { "use strict"; - var replTest = new ReplSetTest({name : 'testSet2', nodes : 1}); + var replTest = new ReplSetTest({name: 'testSet2', nodes: 1}); var nodes = replTest.startSet(); assert.soon(function() { try { var result = nodes[0].getDB("admin").runCommand( - {replSetInitiate: {_id: "testSet2", members: [{_id : 0, tags : ["member0"]}]}}); + {replSetInitiate: {_id: "testSet2", members: [{_id: 0, tags: ["member0"]}]}}); printjson(result); return (result.errmsg.match(/bad or missing host field/) || result.errmsg.match(/Missing expected field \"host\"/)); - } - catch (e) { + } catch (e) { print(e); } return false; -- cgit v1.2.1