Leaflet/spec/suites/layer/ImageOverlaySpec.js

9 lines
236 B
JavaScript
Raw Normal View History

2014-11-13 02:53:26 +08:00
describe('ImageOverlay', function () {
describe('#setStyle', function () {
it('sets opacity', function () {
var overlay = L.imageOverlay().setStyle({opacity: 0.5});
expect(overlay.options.opacity).to.equal(0.5);
});
});
});