aboutsummaryrefslogtreecommitdiffstats
path: root/extlib/leaflet/spec/suites/LeafletSpec.js
blob: c67879cfac6df8de1a5c48ebad5002968bd5c816 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
		});
	});
});