Check for middle events

Most of the times, there is only 3 events. This loop is supposed to
check the middle one, but never does;
This commit is contained in:
Thomas Chandelle
2016-11-09 14:21:56 +01:00
parent 77ec54e245
commit af82f972da

View File

@@ -140,7 +140,7 @@ describe('ol.interaction.Modify', function() {
// make sure we get change events to events array
expect(events.length > 2).to.be(true);
// middle events should be feature modification events
for (var i = 1; i < events.length - 2; i++) {
for (var i = 1; i < events.length - 1; i++) {
expect(events[i]).to.equal('change');
}