Leaflet/spec/suites/LeafletSpec.js
2013-02-05 17:00:38 +02:00

14 lines
292 B
JavaScript

describe('L#noConflict', function() {
it('should restore the previous L value and return Leaflet namespace', function(){
expect(L.version).toBeDefined();
var L2 = L.noConflict();
expect(L).toEqual('test');
expect(L2.version).toBeDefined();
window.L = L2;
});
});