Use named exports from ol/index.js

This commit is contained in:
Tim Schaub
2017-12-12 10:24:58 -07:00
parent fce644556b
commit 87295a74dd
250 changed files with 874 additions and 887 deletions

View File

@@ -1,4 +1,4 @@
import _ol_ from '../../../src/ol/index.js';
import {VERSION} from '../../../src/ol/index.js';
import _ol_AssertionError_ from '../../../src/ol/AssertionError.js';
describe('ol.AssertionError', function() {
@@ -9,7 +9,7 @@ describe('ol.AssertionError', function() {
it('generates a message with a versioned url', function() {
var error = new _ol_AssertionError_(42);
var path = _ol_.VERSION ? _ol_.VERSION.split('-')[0] : 'latest';
var path = VERSION ? VERSION.split('-')[0] : 'latest';
expect(error.message).to.be('Assertion failed. See https://openlayers.org/en/' + path + '/doc/errors/#42 for details.');
});