summaryrefslogtreecommitdiff
path: root/jstests/aggregation/expressions/indexof_array.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/aggregation/expressions/indexof_array.js')
-rw-r--r--jstests/aggregation/expressions/indexof_array.js16
1 files changed, 4 insertions, 12 deletions
diff --git a/jstests/aggregation/expressions/indexof_array.js b/jstests/aggregation/expressions/indexof_array.js
index bfc9ef71a15..3fb445e5066 100644
--- a/jstests/aggregation/expressions/indexof_array.js
+++ b/jstests/aggregation/expressions/indexof_array.js
@@ -46,23 +46,15 @@ load("jstests/aggregation/extras/utils.js"); // For assertErrorCode and testExp
};
assertErrorCode(coll, pipeline, 40090);
- pipeline = {
- $project: {output: {$indexOfArray: [[1, 2, 3], 2, "bad"]}}
- };
+ pipeline = {$project: {output: {$indexOfArray: [[1, 2, 3], 2, "bad"]}}};
assertErrorCode(coll, pipeline, 40096);
- pipeline = {
- $project: {output: {$indexOfArray: [[1, 2, 3], 2, 0, "bad"]}}
- };
+ pipeline = {$project: {output: {$indexOfArray: [[1, 2, 3], 2, 0, "bad"]}}};
assertErrorCode(coll, pipeline, 40096);
- pipeline = {
- $project: {output: {$indexOfArray: [[1, 2, 3], 2, -1]}}
- };
+ pipeline = {$project: {output: {$indexOfArray: [[1, 2, 3], 2, -1]}}};
assertErrorCode(coll, pipeline, 40097);
- pipeline = {
- $project: {output: {$indexOfArray: [[1, 2, 3], 2, 1, -1]}}
- };
+ pipeline = {$project: {output: {$indexOfArray: [[1, 2, 3], 2, 1, -1]}}};
assertErrorCode(coll, pipeline, 40097);
}());