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 {getUid} from '../../../../src/ol/index.js';
import _ol_array_ from '../../../../src/ol/array.js';
import _ol_Collection_ from '../../../../src/ol/Collection.js';
import _ol_extent_ from '../../../../src/ol/extent.js';
@@ -293,7 +293,7 @@ describe('ol.layer.Group', function() {
layers.push(layer);
expect(Object.keys(layerGroup.listenerKeys_).length).to.eql(1);
var listeners = layerGroup.listenerKeys_[_ol_.getUid(layer)];
var listeners = layerGroup.listenerKeys_[getUid(layer)];
expect(listeners.length).to.eql(2);
expect(typeof listeners[0]).to.be('object');
expect(typeof listeners[1]).to.be('object');

View File

@@ -1,4 +1,4 @@
import _ol_ from '../../../../src/ol/index.js';
import {getUid} from '../../../../src/ol/index.js';
import _ol_Map_ from '../../../../src/ol/Map.js';
import _ol_layer_Layer_ from '../../../../src/ol/layer/Layer.js';
import _ol_proj_ from '../../../../src/ol/proj.js';
@@ -404,7 +404,7 @@ describe('ol.layer.Layer', function() {
expect(frameState.layerStatesArray.length).to.be(1);
var layerState = frameState.layerStatesArray[0];
expect(layerState.layer).to.equal(layer);
expect(frameState.layerStates[_ol_.getUid(layer)]).to.equal(layerState);
expect(frameState.layerStates[getUid(layer)]).to.equal(layerState);
});
});