Organize tests

This commit is contained in:
Tim Schaub
2021-04-27 15:41:14 -07:00
parent 278e355795
commit 490cfabe91
599 changed files with 12374 additions and 1603 deletions

View File

@@ -0,0 +1,21 @@
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);
});
});
});