summaryrefslogtreecommitdiff
path: root/jstests/core/group_empty.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/group_empty.js')
-rw-r--r--jstests/core/group_empty.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/jstests/core/group_empty.js b/jstests/core/group_empty.js
index c1772f88b22..6f5637ac0df 100644
--- a/jstests/core/group_empty.js
+++ b/jstests/core/group_empty.js
@@ -2,11 +2,12 @@
t = db.group_empty;
t.drop();
-res1 = db.runCommand({group: {$reduce: function(){}, ns: 'group_empty', cond: {}, key: {}, initial: {count: 0}}});
-t.ensureIndex( { x : 1 } );
-res2 = db.runCommand({group: {$reduce: function(){}, ns: 'group_empty', cond: {}, key: {}, initial: {count: 0}}});
+res1 = db.runCommand(
+ {group: {$reduce: function() {}, ns: 'group_empty', cond: {}, key: {}, initial: {count: 0}}});
+t.ensureIndex({x: 1});
+res2 = db.runCommand(
+ {group: {$reduce: function() {}, ns: 'group_empty', cond: {}, key: {}, initial: {count: 0}}});
assert.docEq(res1.retval, res2.retval);
assert.eq(res1.keys, res2.keys);
assert.eq(res1.count, res2.count);
-