diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2021-06-07 00:58:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-07 00:58:12 +0200 |
commit | 70dae67b73dfea9126f126f516fe8286f1e73417 (patch) | |
tree | e61eafab41ee74330fecf1da2ce125050cfac49b /tests/unit/widget | |
parent | a12c98574d07f002fd59d166f9fc1fd391581b91 (diff) | |
download | jquery-ui-70dae67b73dfea9126f126f516fe8286f1e73417.tar.gz jquery-ui-70dae67b73dfea9126f126f516fe8286f1e73417.zip |
Build: Migrate from JSHint & JSCS to ESLint
Fixes #15393
Closes gh-1958
Diffstat (limited to 'tests/unit/widget')
-rw-r--r-- | tests/unit/widget/animation.js | 3 | ||||
-rw-r--r-- | tests/unit/widget/classes.js | 1 | ||||
-rw-r--r-- | tests/unit/widget/core.js | 5 | ||||
-rw-r--r-- | tests/unit/widget/extend.js | 5 |
4 files changed, 8 insertions, 6 deletions
diff --git a/tests/unit/widget/animation.js b/tests/unit/widget/animation.js index dcacec75c..11d141369 100644 --- a/tests/unit/widget/animation.js +++ b/tests/unit/widget/animation.js @@ -4,6 +4,7 @@ define( [ "lib/helper", "ui/widget" ], function( QUnit, $, helper ) { +"use strict"; QUnit.module( "widget animation", ( function() { var show = $.fn.show, @@ -30,7 +31,7 @@ QUnit.module( "widget animation", ( function() { return helper.moduleAfterEach.apply( this, arguments ); } }; -}() ) ); +} )() ); QUnit.test( "show: null", function( assert ) { var ready = assert.async(); diff --git a/tests/unit/widget/classes.js b/tests/unit/widget/classes.js index 357283b5e..609f99032 100644 --- a/tests/unit/widget/classes.js +++ b/tests/unit/widget/classes.js @@ -4,6 +4,7 @@ define( [ "lib/helper", "ui/widget" ], function( QUnit, $, helper ) { +"use strict"; QUnit.module( "widget factory classes", { beforeEach: function() { diff --git a/tests/unit/widget/core.js b/tests/unit/widget/core.js index 9e69a9253..e36459f72 100644 --- a/tests/unit/widget/core.js +++ b/tests/unit/widget/core.js @@ -5,6 +5,7 @@ define( [ "lib/helper", "ui/widget" ], function( QUnit, $, common, helper ) { +"use strict"; QUnit.module( "widget factory", { afterEach: function() { @@ -16,8 +17,6 @@ QUnit.module( "widget factory", { } } ); -common.testJshint( "widget" ); - QUnit.test( "widget creation", function( assert ) { assert.expect( 5 ); var method, @@ -1443,7 +1442,7 @@ QUnit.test( "._trigger() - instance as element", function( assert ) { .trigger( "remove" ); } ); } ); -}() ); +} )(); QUnit.test( "redefine", function( assert ) { assert.expect( 4 ); diff --git a/tests/unit/widget/extend.js b/tests/unit/widget/extend.js index b27d925f0..ea2707ef3 100644 --- a/tests/unit/widget/extend.js +++ b/tests/unit/widget/extend.js @@ -3,6 +3,7 @@ define( [ "jquery", "ui/widget" ], function( QUnit, $ ) { +"use strict"; QUnit.test( "$.widget.extend()", function( assert ) { assert.expect( 28 ); @@ -75,7 +76,7 @@ QUnit.test( "$.widget.extend()", function( assert ) { assert.strictEqual( nullUndef.xnumber0, null, "Check to make sure null values are inserted" ); target = {}; - recursive = { foo:target, bar:5 }; + recursive = { foo: target, bar: 5 }; $.widget.extend( target, recursive ); assert.deepEqual( target, { foo: {}, bar: 5 }, "Check to make sure a recursive obj doesn't go never-ending loop by not copying it over" ); @@ -92,7 +93,7 @@ QUnit.test( "$.widget.extend()", function( assert ) { assert.strictEqual( ret.foo, null, "Make sure a null value doesn't crash with deep extend, for #1908" ); obj = { foo: null }; - $.widget.extend( obj, { foo:"notnull" } ); + $.widget.extend( obj, { foo: "notnull" } ); assert.equal( obj.foo, "notnull", "Make sure a null value can be overwritten" ); settings = $.widget.extend( {}, defaults, options1, options2 ); |