add getMinZoom test for #1866

[skip ci]
This commit is contained in:
Vladimir Agafonkin 2013-07-25 12:44:55 +03:00
parent 42a78fd867
commit 7c744d06e6

View File

@ -121,6 +121,13 @@ describe("Map", function () {
});
describe("#getMinZoom and #getMaxZoom", function () {
describe('#getMinZoom', function () {
it('returns 0 if not set by Map options or TileLayer options', function () {
var map = L.map(document.createElement('div'));
expect(map.getMinZoom()).to.be(0);
});
});
it("minZoom and maxZoom options overrides any minZoom and maxZoom set on layers", function () {
var map = L.map(document.createElement('div'), {minZoom: 2, maxZoom: 20});