From caf3e4b0623abe8ffada9a434972b439552bf3fa Mon Sep 17 00:00:00 2001 From: Peter Robins Date: Mon, 21 Mar 2016 14:21:56 +0000 Subject: [PATCH] Test for both transform coords should use roughlyEqual --- test/spec/ol/format/geojsonformat.test.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/spec/ol/format/geojsonformat.test.js b/test/spec/ol/format/geojsonformat.test.js index 7371a064e0..d0a9dc264c 100644 --- a/test/spec/ol/format/geojsonformat.test.js +++ b/test/spec/ol/format/geojsonformat.test.js @@ -720,9 +720,8 @@ describe('ol.format.GeoJSON', function() { }); expect(point.getCoordinates()[0]).to.roughlyEqual( newPoint.getCoordinates()[0], 1e-8); - expect( - Math.abs(point.getCoordinates()[1] - newPoint.getCoordinates()[1])) - .to.be.lessThan(0.0000001); + expect(point.getCoordinates()[1]).to.roughlyEqual( + newPoint.getCoordinates()[1], 1e-8); }); it('transforms and encodes geometry collection', function() {