Leaflet/spec/suites/LeafletSpec.js

15 lines
333 B
JavaScript
Raw Normal View History

describe('L#noConflict', function() {
it('should restore the previous L value and return Leaflet namespace', function(){
2010-09-23 22:25:55 +08:00
expect(L.VERSION).toBeDefined();
var L2 = L.noConflict();
expect(L).toEqual('test');
2010-09-23 22:25:55 +08:00
expect(L2.VERSION).toBeDefined();
this.after(function() {
window.L = L2;
});
});
});