Fix failing test
This commit is contained in:
@@ -693,7 +693,8 @@ describe('ol.format.GeoJSON', function() {
|
|||||||
var newPoint = format.readGeometry(geojson, {
|
var newPoint = format.readGeometry(geojson, {
|
||||||
featureProjection: 'EPSG:3857'
|
featureProjection: 'EPSG:3857'
|
||||||
});
|
});
|
||||||
expect(point.getCoordinates()[0]).to.eql(newPoint.getCoordinates()[0]);
|
expect(point.getCoordinates()[0]).to.roughlyEqual(
|
||||||
|
newPoint.getCoordinates()[0], 1e-8);
|
||||||
expect(
|
expect(
|
||||||
Math.abs(point.getCoordinates()[1] - newPoint.getCoordinates()[1]))
|
Math.abs(point.getCoordinates()[1] - newPoint.getCoordinates()[1]))
|
||||||
.to.be.lessThan(0.0000001);
|
.to.be.lessThan(0.0000001);
|
||||||
|
|||||||
Reference in New Issue
Block a user