Files
openlayers/test/spec/ol/source/stamen.test.js
Tim Schaub 7f47883c48 Transformed
2017-12-12 06:53:18 -07:00

28 lines
635 B
JavaScript

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