summaryrefslogtreecommitdiff
path: root/jstests/core/geo_box3.js
diff options
context:
space:
mode:
authorJonathan Abrahams <jonathan@mongodb.com>2016-03-09 12:17:50 -0500
committerJonathan Abrahams <jonathan@mongodb.com>2016-03-09 12:18:14 -0500
commit4ae691e8edc87d0e3cfb633bb91c328426be007b (patch)
tree52079a593f54382ca13a2e741633eab1b6271893 /jstests/core/geo_box3.js
parenta025d43f3ce2efc1fb1282a718f5d286fa0a4dc1 (diff)
downloadmongo-4ae691e8edc87d0e3cfb633bb91c328426be007b.tar.gz
SERVER-22468 Format JS code with approved style in jstests/
Diffstat (limited to 'jstests/core/geo_box3.js')
-rw-r--r--jstests/core/geo_box3.js32
1 files changed, 16 insertions, 16 deletions
diff --git a/jstests/core/geo_box3.js b/jstests/core/geo_box3.js
index 8941f637518..7f9dd12ea60 100644
--- a/jstests/core/geo_box3.js
+++ b/jstests/core/geo_box3.js
@@ -4,33 +4,33 @@
// bounding box.
// This is the bug reported in SERVER-994.
-t=db.geo_box3;
+t = db.geo_box3;
t.drop();
-t.insert({ point : { x : -15000000, y : 10000000 } });
-t.ensureIndex( { point : "2d" } , { min : -21000000 , max : 21000000 } );
-var c=t.find({point: {"$within": {"$box": [[-20000000, 7000000], [0, 15000000]]} } });
+t.insert({point: {x: -15000000, y: 10000000}});
+t.ensureIndex({point: "2d"}, {min: -21000000, max: 21000000});
+var c = t.find({point: {"$within": {"$box": [[-20000000, 7000000], [0, 15000000]]}}});
assert.eq(1, c.count(), "A1");
// Same thing, modulo 1000000.
-t=db.geo_box3;
+t = db.geo_box3;
t.drop();
-t.insert({ point : { x : -15, y : 10 } });
-t.ensureIndex( { point : "2d" } , { min : -21 , max : 21 } );
-var c=t.find({point: {"$within": {"$box": [[-20, 7], [0, 15]]} } });
+t.insert({point: {x: -15, y: 10}});
+t.ensureIndex({point: "2d"}, {min: -21, max: 21});
+var c = t.find({point: {"$within": {"$box": [[-20, 7], [0, 15]]}}});
assert.eq(1, c.count(), "B1");
// Two more examples, one where the index is centered at the origin,
// one not.
-t=db.geo_box3;
+t = db.geo_box3;
t.drop();
-t.insert({ point : { x : 1.0 , y : 1.0 } });
-t.ensureIndex( { point : "2d" } , { min : -2 , max : 2 } );
-var c=t.find({point: {"$within": {"$box": [[.1, .1], [1.99, 1.99]]} } });
+t.insert({point: {x: 1.0, y: 1.0}});
+t.ensureIndex({point: "2d"}, {min: -2, max: 2});
+var c = t.find({point: {"$within": {"$box": [[.1, .1], [1.99, 1.99]]}}});
assert.eq(1, c.count(), "C1");
-t=db.geo_box3;
+t = db.geo_box3;
t.drop();
-t.insert({ point : { x : 3.9 , y : 3.9 } });
-t.ensureIndex( { point : "2d" } , { min : 0 , max : 4 } );
-var c=t.find({point: {"$within": {"$box": [[2.05, 2.05], [3.99, 3.99]]} } });
+t.insert({point: {x: 3.9, y: 3.9}});
+t.ensureIndex({point: "2d"}, {min: 0, max: 4});
+var c = t.find({point: {"$within": {"$box": [[2.05, 2.05], [3.99, 3.99]]}}});
assert.eq(1, c.count(), "D1");