fix specs sometimes failing
This commit is contained in:
parent
5e05068478
commit
f01e32d764
@ -1,14 +1,13 @@
|
||||
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();
|
||||
|
||||
window.L = L2;
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user