From 5d79c6466386862e70ce276a094c1897112b7491 Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Fri, 16 Dec 2016 11:45:35 -0500 Subject: Deferred: Stop inventing jQuery.when() resolution values Fixes gh-3442 Closes gh-3445 --- test/unit/deferred.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/unit/deferred.js') 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" ); } ); -- cgit v1.2.3