Tighter tolerance for point-near check
This commit is contained in:
parent
a3ab4b1095
commit
bf99fdb70e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user