Leaflet/spec/suites/LeafletSpec.js

14 lines
283 B
JavaScript
Raw Normal View History

describe('L#noConflict', function () {
it('restores the previous L value and returns Leaflet namespace', function () {
2013-02-05 23:00:38 +08:00
2013-03-02 05:49:20 +08:00
expect(L.version).to.be.ok();
2013-02-05 23:00:38 +08:00
var L2 = L.noConflict();
2013-03-02 05:49:20 +08:00
expect(L).to.eql('test');
expect(L2.version).to.be.ok();
2013-02-05 23:00:38 +08:00
window.L = L2;
});
2013-02-05 23:00:38 +08:00
});