When using JQuery.Deferred is it OK to invoke reject() directly? Without having invoked a async function?
Perhaps I want some kind of test in the beginning of my asy
You can do it quickly, as your function return a Promise object:
return Promise.reject('test failed');