diff --git a/jquery/jquery-tests.ts b/jquery/jquery-tests.ts index f0da8f49bd..05bb4b58a6 100644 --- a/jquery/jquery-tests.ts +++ b/jquery/jquery-tests.ts @@ -2327,7 +2327,7 @@ function test_EventIsCallable() { } $.when($.ajax("/my/page.json")).then((a,b,c) => a.asdf); // is type JQueryPromise -$.when("asdf", "jkl;").done(x => x.length, x=> x.length); +$.when("asdf", "jkl;").done((x,y) => x.length + y.length, (x,y) => x.length + y.length); var f1 = $.when("fetch"); // Is type JQueryPromise var f2: JQueryPromise = f1.then(s => [s, s]);