Merge pull request #9181 from ahocevar/test-removefeature-on-point

Add test to verify that removefeature is triggered
This commit is contained in:
Andreas Hocevar
2019-02-04 13:02:35 +01:00
committed by GitHub

View File

@@ -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() {