From 4adab517686c13e2cab34b20da8cd1cd94424e90 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Wed, 18 Jul 2018 12:21:42 +0200 Subject: [PATCH] stopPropagation and preventDefault are now separate functions --- test/spec/ol/events/event.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/spec/ol/events/event.test.js b/test/spec/ol/events/event.test.js index c308dedb88..a433fde86f 100644 --- a/test/spec/ol/events/event.test.js +++ b/test/spec/ol/events/event.test.js @@ -19,9 +19,9 @@ describe('ol.events.Event', function() { event.preventDefault(); expect(event.propagationStopped).to.be(true); }); - it('is the same as #stopPropagation', function() { + it('does the same as #stopPropagation', function() { const event = new Event('foo'); - expect(event.stopPropagation).to.equal(event.preventDefault); + expect(event.stopPropagation()).to.equal(event.preventDefault()); }); });