I have a method that when called, makes a HTTP request to the server, and does not care about what happens after. The response is not parsed, and it does not change its state after sending the request or receiving the response.
Now I wish to test this method, ans since there is no state change, I cannot verify that the HTTP request has been made by inspecting the method or the object that owns it. I somehow need to attach sinon to $.mockjax
such that I can perform an assertion verifying that the HTTP request was indeed made.
How to do this?