aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/css.js
diff options
context:
space:
mode:
authorabnud1 <ahmad13932013@hotmail.com>2019-02-18 19:02:38 +0100
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2019-02-18 19:03:26 +0100
commitc3498187421d0a50ee0369163428481137a04b99 (patch)
tree9f56f408a22f610089474d2f1784f1a680b4d483 /test/unit/css.js
parentda44ff39c2c3433e32b757b05b5643edb72fe786 (diff)
downloadjquery-c3498187421d0a50ee0369163428481137a04b99.tar.gz
jquery-c3498187421d0a50ee0369163428481137a04b99.zip
Build: Update test code for compatibility with QUnit 2.x (#4297)
Also, run `grunt npmcopy` to sync the "external" directory with dependencies from package.json. For example, the Sinon library version didn't match. Ref gh-4234 Closes gh-4297
Diffstat (limited to 'test/unit/css.js')
-rw-r--r--test/unit/css.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/css.js b/test/unit/css.js
index a197b6f04..65e4a49b3 100644
--- a/test/unit/css.js
+++ b/test/unit/css.js
@@ -1,6 +1,6 @@
if ( jQuery.css ) {
-QUnit.module( "css", { teardown: moduleTeardown } );
+QUnit.module( "css", { afterEach: moduleTeardown } );
QUnit.test( "css(String|Hash)", function( assert ) {
assert.expect( 42 );
@@ -1503,8 +1503,8 @@ QUnit.test( "Reset the style if set to an empty string", function( assert ) {
QUnit.test(
"Clearing a Cloned Element's Style Shouldn't Clear the Original Element's Style (#8908)",
- 24,
function( assert ) {
+ assert.expect( 24 );
var done = assert.async();
var styles = [ {
name: "backgroundAttachment",