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/replsets/initiate.js | |
parent | a025d43f3ce2efc1fb1282a718f5d286fa0a4dc1 (diff) | |
download | mongo-4ae691e8edc87d0e3cfb633bb91c328426be007b.tar.gz |
SERVER-22468 Format JS code with approved style in jstests/
Diffstat (limited to 'jstests/replsets/initiate.js')
-rw-r--r-- | jstests/replsets/initiate.js | 9 |
1 files changed, 4 insertions, 5 deletions
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; |