summaryrefslogtreecommitdiff
path: root/jstests/core/geo_s2nongeoarray.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/geo_s2nongeoarray.js')
-rw-r--r--jstests/core/geo_s2nongeoarray.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/jstests/core/geo_s2nongeoarray.js b/jstests/core/geo_s2nongeoarray.js
index 067c338faf3..8684706d168 100644
--- a/jstests/core/geo_s2nongeoarray.js
+++ b/jstests/core/geo_s2nongeoarray.js
@@ -2,14 +2,18 @@
// we find them with queries.
t = db.geo_s2nongeoarray;
-oldPoint = [40,5];
+oldPoint = [40, 5];
-var data = {geo: oldPoint, nonGeo: [123,456], otherNonGeo: [{b:[1,2]},{b:[3,4]}]};
+var data = {
+ geo: oldPoint,
+ nonGeo: [123, 456],
+ otherNonGeo: [{b: [1, 2]}, {b: [3, 4]}]
+};
t.drop();
assert.writeOK(t.insert(data));
-assert.commandWorked(t.ensureIndex({ otherNonGeo: 1 }));
-assert.eq(1, t.find({otherNonGeo: {b:[1,2]}}).itcount());
+assert.commandWorked(t.ensureIndex({otherNonGeo: 1}));
+assert.eq(1, t.find({otherNonGeo: {b: [1, 2]}}).itcount());
assert.eq(0, t.find({otherNonGeo: 1}).itcount());
assert.eq(1, t.find({'otherNonGeo.b': 1}).itcount());