From 365652925261d2e50d8e929579169593aae126d5 Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Thu, 3 Nov 2016 14:44:04 +0100 Subject: [PATCH] Fix GeoJSON writeGeometry tests --- test/spec/ol/format/geojson.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/spec/ol/format/geojson.test.js b/test/spec/ol/format/geojson.test.js index b2a2d6f6aa..751db730e5 100644 --- a/test/spec/ol/format/geojson.test.js +++ b/test/spec/ol/format/geojson.test.js @@ -616,7 +616,7 @@ describe('ol.format.GeoJSON', function() { var point = new ol.geom.Point(ol.proj.fromLonLat([10, 20])); var geojson = format.writeGeometry(point, {featureProjection: 'EPSG:3857'}); var obj = JSON.parse(geojson); - expect(obj.coordinates).to.eql([10, 20]); + expect(obj.coordinates).to.eql(ol.proj.toLonLat(point.getCoordinates())); }); it('respects featureProjection passed to constructor', function() { @@ -624,7 +624,7 @@ describe('ol.format.GeoJSON', function() { var point = new ol.geom.Point(ol.proj.fromLonLat([10, 20])); var geojson = format.writeGeometry(point); var obj = JSON.parse(geojson); - expect(obj.coordinates).to.eql([10, 20]); + expect(obj.coordinates).to.eql(ol.proj.toLonLat(point.getCoordinates())); }); it('encodes linestring', function() {