summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod/newcollection2.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/newcollection2.js
parenta025d43f3ce2efc1fb1282a718f5d286fa0a4dc1 (diff)
downloadmongo-4ae691e8edc87d0e3cfb633bb91c328426be007b.tar.gz
SERVER-22468 Format JS code with approved style in jstests/
Diffstat (limited to 'jstests/noPassthroughWithMongod/newcollection2.js')
-rw-r--r--jstests/noPassthroughWithMongod/newcollection2.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/jstests/noPassthroughWithMongod/newcollection2.js b/jstests/noPassthroughWithMongod/newcollection2.js
index 104eec7e897..46cd1316c90 100644
--- a/jstests/noPassthroughWithMongod/newcollection2.js
+++ b/jstests/noPassthroughWithMongod/newcollection2.js
@@ -2,16 +2,16 @@
var baseName = "jstests_disk_newcollection2";
var m = MongoRunner.runMongod({noprealloc: "", smallfiles: ""});
-db = m.getDB( "test" );
+db = m.getDB("test");
-db.createCollection( baseName, {size:0x1FFC0000-0x10-8192} );
-var v = db[ baseName ].validate();
-printjson( v );
-assert( v.valid );
+db.createCollection(baseName, {size: 0x1FFC0000 - 0x10 - 8192});
+var v = db[baseName].validate();
+printjson(v);
+assert(v.valid);
// Try creating collections with some invalid names and confirm that they
// don't crash MongoD.
-db.runCommand({ applyOps: [ { op: 'u', ns: 'a\0b' } ] });
+db.runCommand({applyOps: [{op: 'u', ns: 'a\0b'}]});
var res = db["a\0a"].insert({});
assert(res.hasWriteError(), "A write to collection a\0a succceeded");