aboutsummaryrefslogtreecommitdiffstats
path: root/extlib/leaflet/spec/suites/LeafletSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'extlib/leaflet/spec/suites/LeafletSpec.js')
-rw-r--r--extlib/leaflet/spec/suites/LeafletSpec.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/extlib/leaflet/spec/suites/LeafletSpec.js b/extlib/leaflet/spec/suites/LeafletSpec.js
new file mode 100644
index 00000000..c67879cf
--- /dev/null
+++ b/extlib/leaflet/spec/suites/LeafletSpec.js
@@ -0,0 +1,15 @@
+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;
+ });
+ });
+}); \ No newline at end of file