diff --git a/test/spec/ol/format/geojsonformat.test.js b/test/spec/ol/format/geojsonformat.test.js index df3c46342a..6a4906c9b9 100644 --- a/test/spec/ol/format/geojsonformat.test.js +++ b/test/spec/ol/format/geojsonformat.test.js @@ -693,7 +693,8 @@ describe('ol.format.GeoJSON', function() { var newPoint = format.readGeometry(geojson, { featureProjection: 'EPSG:3857' }); - expect(point.getCoordinates()[0]).to.eql(newPoint.getCoordinates()[0]); + 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);