summaryrefslogtreecommitdiff
path: root/jstests/aggregation/bugs/server25590.js
diff options
context:
space:
mode:
authorclang-format-7.0.1 <adam.martin@10gen.com>2019-07-26 18:42:24 -0400
committerADAM David Alan Martin <adam.martin@10gen.com>2019-07-26 18:42:24 -0400
commitc1a45ebbb0530e3d0201321d725527f1eb83ffce (patch)
treef523079dc5ded3052eefbdcaae424b7502df5b25 /jstests/aggregation/bugs/server25590.js
parentc9599d8610c3da0b7c3da65667aff821063cf5b9 (diff)
downloadmongo-c1a45ebbb0530e3d0201321d725527f1eb83ffce.tar.gz
Apply formatting per `clang-format-7.0.1`
Diffstat (limited to 'jstests/aggregation/bugs/server25590.js')
-rw-r--r--jstests/aggregation/bugs/server25590.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/jstests/aggregation/bugs/server25590.js b/jstests/aggregation/bugs/server25590.js
index 329ae808a2c..b478f806029 100644
--- a/jstests/aggregation/bugs/server25590.js
+++ b/jstests/aggregation/bugs/server25590.js
@@ -1,19 +1,19 @@
// Test that an aggregate command where the "pipeline" field has the wrong type fails with a
// TypeMismatch error.
(function() {
- "use strict";
+"use strict";
- const coll = db.server25590;
- coll.drop();
+const coll = db.server25590;
+coll.drop();
- assert.writeOK(coll.insert({}));
+assert.writeOK(coll.insert({}));
- assert.commandFailedWithCode(db.runCommand({aggregate: coll.getName(), pipeline: 1}),
- ErrorCodes.TypeMismatch);
- assert.commandFailedWithCode(db.runCommand({aggregate: coll.getName(), pipeline: {}}),
- ErrorCodes.TypeMismatch);
- assert.commandFailedWithCode(db.runCommand({aggregate: coll.getName(), pipeline: [1, 2]}),
- ErrorCodes.TypeMismatch);
- assert.commandFailedWithCode(db.runCommand({aggregate: coll.getName(), pipeline: [1, null]}),
- ErrorCodes.TypeMismatch);
+assert.commandFailedWithCode(db.runCommand({aggregate: coll.getName(), pipeline: 1}),
+ ErrorCodes.TypeMismatch);
+assert.commandFailedWithCode(db.runCommand({aggregate: coll.getName(), pipeline: {}}),
+ ErrorCodes.TypeMismatch);
+assert.commandFailedWithCode(db.runCommand({aggregate: coll.getName(), pipeline: [1, 2]}),
+ ErrorCodes.TypeMismatch);
+assert.commandFailedWithCode(db.runCommand({aggregate: coll.getName(), pipeline: [1, null]}),
+ ErrorCodes.TypeMismatch);
})();