summaryrefslogtreecommitdiff
path: root/jstests/aggregation/bugs/server14670.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/aggregation/bugs/server14670.js')
-rw-r--r--jstests/aggregation/bugs/server14670.js24
1 files changed, 11 insertions, 13 deletions
diff --git a/jstests/aggregation/bugs/server14670.js b/jstests/aggregation/bugs/server14670.js
index dc8a750e9db..adadb154da0 100644
--- a/jstests/aggregation/bugs/server14670.js
+++ b/jstests/aggregation/bugs/server14670.js
@@ -3,21 +3,19 @@
load("jstests/aggregation/extras/utils.js"); // For assertErrorCode.
(function() {
- "use strict";
+"use strict";
- var coll = db.substr;
- coll.drop();
+var coll = db.substr;
+coll.drop();
- // Need an empty document for the pipeline.
- coll.insert({});
+// Need an empty document for the pipeline.
+coll.insert({});
- assertErrorCode(coll,
- [{$project: {strLen: {$strLenBytes: 1}}}],
- 34473,
- "$strLenBytes requires a string argument.");
+assertErrorCode(coll,
+ [{$project: {strLen: {$strLenBytes: 1}}}],
+ 34473,
+ "$strLenBytes requires a string argument.");
- assertErrorCode(coll,
- [{$project: {strLen: {$strLenCP: 1}}}],
- 34471,
- "$strLenCP requires a string argument.");
+assertErrorCode(
+ coll, [{$project: {strLen: {$strLenCP: 1}}}], 34471, "$strLenCP requires a string argument.");
}());