This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
univnautes-old/virtualenv/pffedportal/media/CloudMade-Leaflet/spec/suites/LeafletSpec.js

14 lines
328 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();
this.after(function () {
window.L = L2;
});
expect(L).toEqual('test');
expect(L2.version).toBeDefined();
});
});