diff --git a/test/spec/ol/source/vector.test.js b/test/spec/ol/source/vector.test.js index 68a0866810..4addb60f42 100644 --- a/test/spec/ol/source/vector.test.js +++ b/test/spec/ol/source/vector.test.js @@ -259,6 +259,13 @@ describe('ol.source.Vector', function() { expect(listener).to.be.called(); }); + it('fires a removefeature event', function() { + const listener = sinon.spy(); + listen(vectorSource, 'removefeature', listener); + vectorSource.removeFeature(features[0]); + expect(listener).to.be.called(); + }); + }); describe('modifying a feature\'s geometry', function() {