jquery: fix test

This commit is contained in:
Igor Oleinikov
2013-12-18 20:55:02 +04:00
parent d33450a368
commit 85492e5dfa

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<any>($.ajax("/my/page.json")).then(a => 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>