diff options
author | Mike Grundy <michael.grundy@10gen.com> | 2016-02-04 12:29:01 -0500 |
---|---|---|
committer | Mike Grundy <michael.grundy@10gen.com> | 2016-02-09 13:41:02 -0500 |
commit | 3bed8596d18275d1561e4f44f1f0bd72c1e038f1 (patch) | |
tree | 788eaed3c7a692a424f080d16a8841dc8afa3c13 /jstests/core/geo_oob_sphere.js | |
parent | 985e2a0be95709ac064c57f0a9bb385a55937285 (diff) | |
download | mongo-3bed8596d18275d1561e4f44f1f0bd72c1e038f1.tar.gz |
SERVER-22341 fix jslint errors in jstests/core with eslint --fix
Conflicts:
jstests/core/count_hint.js
Diffstat (limited to 'jstests/core/geo_oob_sphere.js')
-rw-r--r-- | jstests/core/geo_oob_sphere.js | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/jstests/core/geo_oob_sphere.js b/jstests/core/geo_oob_sphere.js index e03111bcf16..7403cc99610 100644 --- a/jstests/core/geo_oob_sphere.js +++ b/jstests/core/geo_oob_sphere.js @@ -2,30 +2,30 @@ // Ensures spherical queries report invalid latitude values in points and center positions // -t = db.geooobsphere +t = db.geooobsphere; t.drop(); -t.insert({ loc : { x : 30, y : 89 } }) -t.insert({ loc : { x : 30, y : 89 } }) -t.insert({ loc : { x : 30, y : 89 } }) -t.insert({ loc : { x : 30, y : 89 } }) -t.insert({ loc : { x : 30, y : 89 } }) -t.insert({ loc : { x : 30, y : 89 } }) -t.insert({ loc : { x : 30, y : 91 } }) +t.insert({ loc : { x : 30, y : 89 } }); +t.insert({ loc : { x : 30, y : 89 } }); +t.insert({ loc : { x : 30, y : 89 } }); +t.insert({ loc : { x : 30, y : 89 } }); +t.insert({ loc : { x : 30, y : 89 } }); +t.insert({ loc : { x : 30, y : 89 } }); +t.insert({ loc : { x : 30, y : 91 } }); -assert.commandWorked(t.ensureIndex({ loc : "2d" })) +assert.commandWorked(t.ensureIndex({ loc : "2d" })); -assert.throws( function() { t.find({ loc : { $nearSphere : [ 30, 91 ], $maxDistance : 0.25 } }).count() } ); +assert.throws( function() { t.find({ loc : { $nearSphere : [ 30, 91 ], $maxDistance : 0.25 } }).count(); } ); // TODO: SERVER-9986 - it's not clear that throwing is correct behavior here // assert.throws( function() { t.find({ loc : { $nearSphere : [ 30, 89 ], $maxDistance : 0.25 } }).count() } ); -assert.throws( function() { t.find({ loc : { $within : { $centerSphere : [[ -180, -91 ], 0.25] } } }).count() } ); +assert.throws( function() { t.find({ loc : { $within : { $centerSphere : [[ -180, -91 ], 0.25] } } }).count(); } ); var res; -res = db.runCommand({ geoNear : "geooobsphere", near : [179, -91], maxDistance : 0.25, spherical : true }) -assert.commandFailed( res ) -printjson( res ) +res = db.runCommand({ geoNear : "geooobsphere", near : [179, -91], maxDistance : 0.25, spherical : true }); +assert.commandFailed( res ); +printjson( res ); // TODO: SERVER-9986 - it's not clear that throwing is correct behavior here // res = db.runCommand({ geoNear : "geooobsphere", near : [30, 89], maxDistance : 0.25, spherical : true }) |