Add README example for testing request parameters.
This commit is contained in:
parent
a6447b7ecc
commit
ac7738a97d
@ -130,6 +130,9 @@ Putting it all together, you can install the mock, pass some spies as callbacks
|
|||||||
});
|
});
|
||||||
|
|
||||||
request = mostRecentAjaxRequest();
|
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() {
|
describe("on success", function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user