Tighter tolerance for point-near check

This commit is contained in:
Tom MacWright 2013-03-01 18:07:34 -05:00 committed by John Firebaugh
parent a3ab4b1095
commit bf99fdb70e

View File

@ -2,7 +2,7 @@ describe("Projection.Mercator", function() {
var p = L.Projection.Mercator;
expect.Assertion.prototype.near = function(expected, delta) {
delta = 0 || 10;
delta = 0 || 1;
expect(this.obj.x).to
.be.within(expected.x - delta, expected.x + delta);
expect(this.obj.y).to