first commit, after modifying client section
This commit is contained in:
3
public/assets/vendors/switchery/meteor/export.js
vendored
Executable file
3
public/assets/vendors/switchery/meteor/export.js
vendored
Executable file
@@ -0,0 +1,3 @@
|
||||
/*global Switchery:true*/ // Meteor creates a file-scope global for exporting. This comment prevents a potential JSHint warning.
|
||||
Switchery = window.Switchery;
|
||||
delete window.Switchery;
|
||||
10
public/assets/vendors/switchery/meteor/tests.js
vendored
Executable file
10
public/assets/vendors/switchery/meteor/tests.js
vendored
Executable file
@@ -0,0 +1,10 @@
|
||||
'use strict';
|
||||
|
||||
Tinytest.add('Switchery integration', function (test) {
|
||||
|
||||
var checkbox = document.createElement('input');
|
||||
checkbox.className = 'js-switch';
|
||||
var switchy = new Switchery(checkbox);
|
||||
|
||||
test.instanceOf(switchy, Switchery, 'instantiation OK');
|
||||
});
|
||||
Reference in New Issue
Block a user