jQuery: Fix test

This commit is contained in:
johnnyreilly
2013-12-23 10:08:37 +00:00
parent 6ab7831306
commit 9675d3a1e0

View File

@@ -2372,7 +2372,7 @@ function test_EventIsCallable() {
var ev = jQuery.Event('click');
}
$.when($.ajax("/my/page.json")).then((a,b,c) => a.asdf); // is type JQueryPromise<any>
$.when($.ajax("/my/page.json")).then((a?,b?,c?) => a.asdf); // is type JQueryPromise<any>
$.when("asdf", "jkl;").done((x,y) => x.length + y.length, (x,y) => x.length + y.length);
var f1 = $.when("fetch"); // Is type JQueryPromise<string>