diff options
author | Jonathan Abrahams <jonathan@mongodb.com> | 2016-03-09 12:17:50 -0500 |
---|---|---|
committer | Jonathan Abrahams <jonathan@mongodb.com> | 2016-03-09 12:18:14 -0500 |
commit | 4ae691e8edc87d0e3cfb633bb91c328426be007b (patch) | |
tree | 52079a593f54382ca13a2e741633eab1b6271893 /jstests/core/geo_s2dedupnear.js | |
parent | a025d43f3ce2efc1fb1282a718f5d286fa0a4dc1 (diff) | |
download | mongo-4ae691e8edc87d0e3cfb633bb91c328426be007b.tar.gz |
SERVER-22468 Format JS code with approved style in jstests/
Diffstat (limited to 'jstests/core/geo_s2dedupnear.js')
-rw-r--r-- | jstests/core/geo_s2dedupnear.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/jstests/core/geo_s2dedupnear.js b/jstests/core/geo_s2dedupnear.js index 1b6f11ce504..21378893720 100644 --- a/jstests/core/geo_s2dedupnear.js +++ b/jstests/core/geo_s2dedupnear.js @@ -3,9 +3,11 @@ t = db.geo_s2dedupnear; t.drop(); -t.ensureIndex( { geo : "2dsphere" } ); -var x = { "type" : "Polygon", - "coordinates" : [ [ [100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0]]]}; +t.ensureIndex({geo: "2dsphere"}); +var x = { + "type": "Polygon", + "coordinates": [[[100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0]]] +}; t.insert({geo: x}); -res = t.find({geo: {$geoNear: {"type" : "Point", "coordinates" : [31, 41]}}}); +res = t.find({geo: {$geoNear: {"type": "Point", "coordinates": [31, 41]}}}); assert.eq(res.itcount(), 1); |