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