aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/deferred.js
diff options
context:
space:
mode:
authorRichard Gibson <richard.gibson@gmail.com>2016-12-16 11:45:35 -0500
committerGitHub <noreply@github.com>2016-12-16 11:45:35 -0500
commit5d79c6466386862e70ce276a094c1897112b7491 (patch)
treee6035aed8f88d57bb0d0fefb5399aed926413d13 /test/unit/deferred.js
parent1777899a747647f3fa839eea4b0bb695d3b60f06 (diff)
downloadjquery-5d79c6466386862e70ce276a094c1897112b7491.tar.gz
jquery-5d79c6466386862e70ce276a094c1897112b7491.zip
Deferred: Stop inventing jQuery.when() resolution values
Fixes gh-3442 Closes gh-3445
Diffstat (limited to 'test/unit/deferred.js')
-rw-r--r--test/unit/deferred.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/deferred.js b/test/unit/deferred.js
index 32f325681..426af4b5f 100644
--- a/test/unit/deferred.js
+++ b/test/unit/deferred.js
@@ -814,11 +814,11 @@ QUnit.test( "jQuery.when(nonThenable) - like Promise.resolve", function( assert
jQuery.when()
.done( function( resolveValue ) {
- assert.strictEqual( resolveValue, undefined, "Resolved .done with no arguments" );
+ assert.strictEqual( arguments.length, 0, "Resolved .done with no arguments" );
assert.strictEqual( this, defaultContext, "Default .done context with no arguments" );
} )
.then( function( resolveValue ) {
- assert.strictEqual( resolveValue, undefined, "Resolved .then with no arguments" );
+ assert.strictEqual( arguments.length, 0, "Resolved .then with no arguments" );
assert.strictEqual( this, defaultContext, "Default .then context with no arguments" );
} );