In addition to using const and let, this also upgrades our linter config and removes lint (mostly whitespace).
36 lines
717 B
JavaScript
36 lines
717 B
JavaScript
import TileLayer from '../../../../src/ol/layer/Tile.js';
|
|
import OSM from '../../../../src/ol/source/OSM.js';
|
|
|
|
|
|
describe('ol.layer.Tile', function() {
|
|
|
|
describe('constructor (defaults)', function() {
|
|
|
|
let layer;
|
|
|
|
beforeEach(function() {
|
|
layer = new TileLayer({
|
|
source: new OSM()
|
|
});
|
|
});
|
|
|
|
afterEach(function() {
|
|
layer.dispose();
|
|
});
|
|
|
|
it('creates an instance', function() {
|
|
expect(layer).to.be.a(TileLayer);
|
|
});
|
|
|
|
it('provides default preload', function() {
|
|
expect(layer.getPreload()).to.be(0);
|
|
});
|
|
|
|
it('provides default useInterimTilesOnError', function() {
|
|
expect(layer.getUseInterimTilesOnError()).to.be(true);
|
|
});
|
|
|
|
});
|
|
|
|
});
|