Installed leaflet in extlib
This commit is contained in:
15
extlib/leaflet/spec/suites/LeafletSpec.js
Normal file
15
extlib/leaflet/spec/suites/LeafletSpec.js
Normal file
@@ -0,0 +1,15 @@
|
||||
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();
|
||||
|
||||
this.after(function() {
|
||||
window.L = L2;
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user