I am writing some QUnit tests for a JavaScript that makes AJAX calls.
For isolation I overwrite $.ajax to write the parameter array of an AJAX call to a
$.ajax
I think the link below should help. as for a parameter I am not so sure but it could be .
$.fn.ajax.success = function (){ ///the rest goest here }
Override jQuery .val() function?