Files
openlayers/test/spec/ol/source/stamen.test.js
Tim Schaub ad62739a6e Use blocked scoped variables
In addition to using const and let, this also upgrades our linter config and removes lint (mostly whitespace).
2018-01-12 00:50:30 -07:00

28 lines
603 B
JavaScript

import Stamen from '../../../../src/ol/source/Stamen.js';
describe('ol.source.Stamen', function() {
describe('constructor', function() {
it('can be constructed with a custom minZoom', function() {
const source = new Stamen({
layer: 'watercolor',
minZoom: 10
});
expect(source.getTileGrid().getMinZoom()).to.be(10);
});
it('can be constructed with a custom maxZoom', function() {
const source = new Stamen({
layer: 'watercolor',
maxZoom: 8
});
expect(source.getTileGrid().getMaxZoom()).to.be(8);
});
});
});