summaryrefslogtreecommitdiff
path: root/jstests/core/regex_not_id.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/regex_not_id.js')
-rw-r--r--jstests/core/regex_not_id.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/core/regex_not_id.js b/jstests/core/regex_not_id.js
index b5d0f1b01a6..1f15250f240 100644
--- a/jstests/core/regex_not_id.js
+++ b/jstests/core/regex_not_id.js
@@ -3,10 +3,10 @@
var testColl = db.regex_not_id;
testColl.drop();
-assert.writeOK(testColl.insert({ _id: "ABCDEF1" }, {writeConcern:{w:1}}));
+assert.writeOK(testColl.insert({_id: "ABCDEF1"}, {writeConcern: {w: 1}}));
// Should be an error.
-assert.writeError(testColl.insert({ _id: /^A/ }, {writeConcern:{w:1}}));
+assert.writeError(testColl.insert({_id: /^A/}, {writeConcern: {w: 1}}));
// _id doesn't have to be first; still disallowed
-assert.writeError(testColl.insert({ xxx: "ABCDEF", _id: /ABCDEF/ }, {writeConcern:{w:1}})); \ No newline at end of file
+assert.writeError(testColl.insert({xxx: "ABCDEF", _id: /ABCDEF/}, {writeConcern: {w: 1}})); \ No newline at end of file