mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-14 05:12:13 +02:00
Add minzoom check to map.zoom() (closes #2499)
This commit is contained in:
@@ -30,6 +30,12 @@ describe('iD.Map', function() {
|
||||
map.zoom(4);
|
||||
expect(spy).not.to.have.been.called;
|
||||
});
|
||||
|
||||
it('respects minzoom', function() {
|
||||
map.minzoom(16);
|
||||
map.zoom(15);
|
||||
expect(map.zoom()).to.equal(16);
|
||||
});
|
||||
});
|
||||
|
||||
describe('#zoomIn', function() {
|
||||
|
||||
Reference in New Issue
Block a user