fix namespace spec
This commit is contained in:
parent
7e7379ae9c
commit
ff36820cf9
@ -1,12 +1,12 @@
|
|||||||
describe('L#noConflict', function() {
|
describe('L#noConflict', function() {
|
||||||
it('should restore the previous L value and return Leaflet namespace', function(){
|
it('should restore the previous L value and return Leaflet namespace', function(){
|
||||||
|
|
||||||
expect(L.version).toBeDefined();
|
expect(L.VERSION).toBeDefined();
|
||||||
|
|
||||||
var L2 = L.noConflict();
|
var L2 = L.noConflict();
|
||||||
|
|
||||||
expect(L).toEqual('test');
|
expect(L).toEqual('test');
|
||||||
expect(L2.version).toBeDefined();
|
expect(L2.VERSION).toBeDefined();
|
||||||
|
|
||||||
this.after(function() {
|
this.after(function() {
|
||||||
window.L = L2;
|
window.L = L2;
|
||||||
|
Loading…
Reference in New Issue
Block a user