Use named exports from ol/index.js
This commit is contained in:
@@ -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.');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user