summaryrefslogtreecommitdiff
path: root/jstests/aggregation/bugs/server6185.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/aggregation/bugs/server6185.js')
-rw-r--r--jstests/aggregation/bugs/server6185.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/jstests/aggregation/bugs/server6185.js b/jstests/aggregation/bugs/server6185.js
index ab7c821d001..e1b19ad2c1f 100644
--- a/jstests/aggregation/bugs/server6185.js
+++ b/jstests/aggregation/bugs/server6185.js
@@ -2,11 +2,11 @@
c = db.c;
c.drop();
-c.save({a:[1]});
-c.save({a:{c:1}});
-c.save({a:[{c:1},{b:1,c:1},{c:1}]});
-c.save({a:1});
-c.save({b:1});
+c.save({a: [1]});
+c.save({a: {c: 1}});
+c.save({a: [{c: 1}, {b: 1, c: 1}, {c: 1}]});
+c.save({a: 1});
+c.save({b: 1});
// assert the aggregation and the query produce the same thing
-assert.eq(c.aggregate({$project:{'a.b':1}}).toArray(), c.find({}, {'a.b':1}).toArray());
+assert.eq(c.aggregate({$project: {'a.b': 1}}).toArray(), c.find({}, {'a.b': 1}).toArray());