diff options
Diffstat (limited to 'tests/unit/selectable')
-rw-r--r-- | tests/unit/selectable/events.js | 1 | ||||
-rw-r--r-- | tests/unit/selectable/methods.js | 5 | ||||
-rw-r--r-- | tests/unit/selectable/options.js | 9 |
3 files changed, 12 insertions, 3 deletions
diff --git a/tests/unit/selectable/events.js b/tests/unit/selectable/events.js index 1ef45264e..5f1a512bf 100644 --- a/tests/unit/selectable/events.js +++ b/tests/unit/selectable/events.js @@ -4,6 +4,7 @@ define( [ "lib/helper", "ui/widgets/selectable" ], function( QUnit, $, testHelpers ) { +"use strict"; QUnit.module( "selectable: events", { afterEach: testHelpers.moduleAfterEach } ); diff --git a/tests/unit/selectable/methods.js b/tests/unit/selectable/methods.js index d0dc23e69..377ac6150 100644 --- a/tests/unit/selectable/methods.js +++ b/tests/unit/selectable/methods.js @@ -4,6 +4,7 @@ define( [ "lib/helper", "ui/widgets/selectable" ], function( QUnit, $, helper ) { +"use strict"; QUnit.module( "selectable: methods", { afterEach: helper.moduleAfterEach } ); @@ -53,7 +54,9 @@ QUnit.test( "enable", function( assert ) { el.selectable( { disabled: true, - start: function() { fired = true; } + start: function() { + fired = true; + } } ); el.simulate( "drag", { dx: 20, diff --git a/tests/unit/selectable/options.js b/tests/unit/selectable/options.js index 02c0d2b2a..6c9e84901 100644 --- a/tests/unit/selectable/options.js +++ b/tests/unit/selectable/options.js @@ -4,6 +4,7 @@ define( [ "lib/helper", "ui/widgets/selectable" ], function( QUnit, $, helper ) { +"use strict"; QUnit.module( "selectable: options", { afterEach: helper.moduleAfterEach } ); @@ -13,7 +14,9 @@ QUnit.test( "autoRefresh", function( assert ) { var actual = 0, el = $( "#selectable1" ), sel = $( "*", el ), - selected = function() { actual += 1; }; + selected = function() { + actual += 1; + }; el = $( "#selectable1" ).selectable( { autoRefresh: false, selected: selected } ); sel.hide(); @@ -51,7 +54,9 @@ QUnit.test( "filter", function( assert ) { var actual = 0, el = $( "#selectable1" ), sel = $( "*", el ), - selected = function() { actual += 1; }; + selected = function() { + actual += 1; + }; el = $( "#selectable1" ).selectable( { filter: ".special", selected: selected } ); el.simulate( "drag", { |