diff --git a/test/spec/ol/coordinate.test.js b/test/spec/ol/coordinate.test.js index 3cfd27d901..0b07c41956 100644 --- a/test/spec/ol/coordinate.test.js +++ b/test/spec/ol/coordinate.test.js @@ -1,4 +1,5 @@ import Circle from '../../../src/ol/geom/Circle.js'; +import Projection from '../../../src/ol/proj/Projection.js'; import { add as addCoordinate, closestOnCircle, @@ -271,5 +272,14 @@ describe('ol.coordinate', function () { it('moves far off right coordinate to real world', function () { expect(wrapX([1096, 48], projection)).to.eql([16, 48]); }); + + const swiss = new Projection({ + code: 'EPSG:21781', + units: 'm', + }); + + it('leaves non-global projection coordinates untouched', function () { + expect(wrapX([1096, 48], swiss)).to.eql([1096, 48]); + }); }); });