Merge pull request #22 from ragaskar/param_expectation_example
Add README example for testing request parameters.
This commit is contained in:
commit
d6b52c4d4b
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user