Leaflet/spec/suites/core/GeneralSpec.js

20 lines
348 B
JavaScript
Raw Normal View History

describe('General', function () {
describe('noConflict', function () {
var leaflet = L;
after(function () {
L = leaflet;
});
expect(L.noConflict()).to.eql(leaflet);
});
describe('namespace extension', function () {
L.Util.foo = 'bar';
2017-07-26 17:51:35 +08:00
L.Foo = 'Bar';
expect(L.Util.foo).to.eql('bar');
2017-07-26 17:51:35 +08:00
expect(L.Foo).to.eql('Bar');
});
});