Merge pull request #7146 from openlayers/unmodified-version

Avoid modifying imports
This commit is contained in:
Tim Schaub
2017-08-17 13:38:33 -04:00
committed by GitHub
2 changed files with 3 additions and 5 deletions
+2 -4
View File
@@ -10,11 +10,9 @@ describe('ol.AssertionError', function() {
}); });
it('generates a message with a versioned url', function() { it('generates a message with a versioned url', function() {
var origVersion = ol.VERSION;
ol.VERSION = 'foo';
var error = new ol.AssertionError(42); var error = new ol.AssertionError(42);
expect(error.message).to.be('Assertion failed. See https://openlayers.org/en/foo/doc/errors/#42 for details.'); var path = ol.VERSION ? ol.VERSION.split('-')[0] : 'latest';
ol.VERSION = origVersion; expect(error.message).to.be('Assertion failed. See https://openlayers.org/en/' + path + '/doc/errors/#42 for details.');
}); });
it('has an error code', function() { it('has an error code', function() {
+1 -1
View File
@@ -760,7 +760,7 @@ describe('ol.View', function() {
expect(view.getAnimating()).to.be(true); expect(view.getAnimating()).to.be(true);
view.animate({ view.animate({
zoom: 2, zoom: 2,
duration: 25 duration: 50
}, function() { }, function() {
expect(calls).to.be(1); expect(calls).to.be(1);
expect(view.getZoom()).to.be(2); expect(view.getZoom()).to.be(2);