diff --git a/test/spec/ol/format/gpxformat.test.js b/test/spec/ol/format/gpxformat.test.js index bf5c4eaca0..eea926db2f 100644 --- a/test/spec/ol/format/gpxformat.test.js +++ b/test/spec/ol/format/gpxformat.test.js @@ -567,10 +567,10 @@ describe('ol.format.GPX', function() { [[[0, 0], [2, 2], [4, 0], [0, 0]]]); var feature = new ol.Feature(polygon); var features = [feature]; - var gpx = format.writeFeatures(features); + var gpx = format.writeFeaturesNode(features); var expected = ''; - expect(gpx).to.be(expected); + expect(gpx).to.xmleql(ol.xml.parse(expected)); }); });