From d3527bf91084726d906a8c18971850f7909b8c3e Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Thu, 17 Aug 2017 12:06:33 -0400 Subject: [PATCH 1/2] Avoid modifying imports --- test/spec/ol/assertionerror.test.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/spec/ol/assertionerror.test.js b/test/spec/ol/assertionerror.test.js index 6ff509c588..d422ceff6a 100644 --- a/test/spec/ol/assertionerror.test.js +++ b/test/spec/ol/assertionerror.test.js @@ -10,11 +10,9 @@ describe('ol.AssertionError', function() { }); it('generates a message with a versioned url', function() { - var origVersion = ol.VERSION; - ol.VERSION = 'foo'; var error = new ol.AssertionError(42); - expect(error.message).to.be('Assertion failed. See https://openlayers.org/en/foo/doc/errors/#42 for details.'); - ol.VERSION = origVersion; + var path = ol.VERSION ? ol.VERSION.split('-')[0] : 'latest'; + expect(error.message).to.be('Assertion failed. See https://openlayers.org/en/' + path + '/doc/errors/#42 for details.'); }); it('has an error code', function() { From 967cffc3982d0749b2394b07eb3a1aca4c38e82c Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Thu, 17 Aug 2017 13:06:15 -0400 Subject: [PATCH 2/2] Allow longer for first animation to finish --- test/spec/ol/view.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/spec/ol/view.test.js b/test/spec/ol/view.test.js index 10cb9c1ddd..1813ef6eef 100644 --- a/test/spec/ol/view.test.js +++ b/test/spec/ol/view.test.js @@ -760,7 +760,7 @@ describe('ol.View', function() { expect(view.getAnimating()).to.be(true); view.animate({ zoom: 2, - duration: 25 + duration: 50 }, function() { expect(calls).to.be(1); expect(view.getZoom()).to.be(2);