Sha256: 956e776eff55385c57af6dc5a29af99aee91c25a739a22d1701ca24c221996fb

Contents?: true

Size: 333 Bytes

Versions: 3

Compression:

Stored size: 333 Bytes

Contents

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;
		});
	});
});

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
leaflet-ruby-0.3.beta4 lib/leaflet/spec/suites/LeafletSpec.js
leaflet-ruby-0.3.beta3 lib/leaflet/spec/suites/LeafletSpec.js
leaflet-ruby-0.3.beta1 lib/leaflet/spec/suites/LeafletSpec.js