summaryrefslogtreecommitdiff
path: root/jstests/core/list_collections_filter.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/list_collections_filter.js')
-rw-r--r--jstests/core/list_collections_filter.js22
1 files changed, 16 insertions, 6 deletions
diff --git a/jstests/core/list_collections_filter.js b/jstests/core/list_collections_filter.js
index 4b5c42bbc78..e0d18f055d0 100644
--- a/jstests/core/list_collections_filter.js
+++ b/jstests/core/list_collections_filter.js
@@ -67,10 +67,20 @@
// Filter with $and and $in.
testListCollections({name: {$in: ["lists", /.*_sets$/]}, options: {}},
["lists", "ordered_sets", "unordered_sets"]);
- testListCollections(
- {$and: [{name: {$in: ["lists", /.*_sets$/]}}, {name: "lists"}, {options: {}}, ]},
- ["lists"]);
- testListCollections(
- {$and: [{name: {$in: ["lists", /.*_sets$/]}}, {name: "non-existent"}, {options: {}}, ]},
- []);
+ testListCollections({
+ $and: [
+ {name: {$in: ["lists", /.*_sets$/]}},
+ {name: "lists"},
+ {options: {}},
+ ]
+ },
+ ["lists"]);
+ testListCollections({
+ $and: [
+ {name: {$in: ["lists", /.*_sets$/]}},
+ {name: "non-existent"},
+ {options: {}},
+ ]
+ },
+ []);
}());