I want to ask somthing about jasmine spy . Normally i use spy like this
function getAuthrize(id) {
$.ajax({
type: "GET",
url: "/Account/LogOn" + id,
contentType: "application/json; charset=utf-8",
dataType: "json"
});
}
spyOn($, "ajax");
getAuthrize(123);
expect($.ajax).toHaveBeenCalled();
but i want to know that what if i want to validate more things like ( the url
called in ajax call is /Account/LogOn
, type is 'Get'
and so on .
Thanks in advance