summaryrefslogtreecommitdiff
path: root/jstests/core/geo_s2nonstring.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/geo_s2nonstring.js')
-rw-r--r--jstests/core/geo_s2nonstring.js18
1 files changed, 8 insertions, 10 deletions
diff --git a/jstests/core/geo_s2nonstring.js b/jstests/core/geo_s2nonstring.js
index 43587f0c8e8..960f0c727a8 100644
--- a/jstests/core/geo_s2nonstring.js
+++ b/jstests/core/geo_s2nonstring.js
@@ -14,15 +14,13 @@ t.save({geo: {type: 'Point', coordinates: [0, 0]}, x: 'a'});
t.save({geo: {type: 'Point', coordinates: [0, 0]}});
// Expect 1 match, where x is 'a'
-assert.eq(1,
- t.count({
- geo: {$near: {$geometry: {type: 'Point', coordinates: [0, 0]}, $maxDistance: 20}},
- x: 'a'
- }));
+assert.eq(1, t.count({
+ geo: {$near: {$geometry: {type: 'Point', coordinates: [0, 0]}, $maxDistance: 20}},
+ x: 'a'
+}));
// Expect 1 match, where x matches null (missing matches null).
-assert.eq(1,
- t.count({
- geo: {$near: {$geometry: {type: 'Point', coordinates: [0, 0]}, $maxDistance: 20}},
- x: null
- }));
+assert.eq(1, t.count({
+ geo: {$near: {$geometry: {type: 'Point', coordinates: [0, 0]}, $maxDistance: 20}},
+ x: null
+}));