Leaflet/spec/suites/LeafletSpec.js

14 lines
292 B
JavaScript
Raw Normal View History

describe('L#noConflict', function() {
it('should restore the previous L value and return Leaflet namespace', function(){
2013-02-05 23:00:38 +08:00
expect(L.version).toBeDefined();
2013-02-05 23:00:38 +08:00
var L2 = L.noConflict();
expect(L).toEqual('test');
expect(L2.version).toBeDefined();
2013-02-05 23:00:38 +08:00
window.L = L2;
});
2013-02-05 23:00:38 +08:00
});