Add README example for testing request parameters.

This commit is contained in:
ragaskar 2013-02-07 07:21:46 -08:00
parent a6447b7ecc
commit ac7738a97d

View File

@ -130,6 +130,9 @@ Putting it all together, you can install the mock, pass some spies as callbacks
});
request = mostRecentAjaxRequest();
expect(request.url).toBe('venues/search');
expect(request.method').toBe('POST');
expect(request.data()).toEqual({latLng: ['40.019461, -105.273296']});
});
describe("on success", function() {