lib/leaflet/spec/suites/control/Control.LayersSpec.js in leaflet-js-0.6.beta4 vs lib/leaflet/spec/suites/control/Control.LayersSpec.js in leaflet-js-0.7.0

- old
+ new

@@ -10,10 +10,10 @@ var baseLayers = {"Layer 1": L.tileLayer(), "Layer 2": L.tileLayer()}, layers = L.control.layers(baseLayers).addTo(map), spy = sinon.spy(); map.on('baselayerchange', spy) - .whenReady(function() { + .whenReady(function () { happen.click(layers._baseLayersList.getElementsByTagName("input")[0]); expect(spy.called).to.be.ok(); expect(spy.mostRecentCall.args[0].layer).to.be(baseLayers["Layer 1"]); });