Skip to content

Commit

Permalink
docs(fakeXhr): add short note about the optional nature of the argume…
Browse files Browse the repository at this point in the history
…nts of `respondWithJson`
  • Loading branch information
Mitchal committed Mar 2, 2018
1 parent 855a38b commit c784cb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -611,4 +611,4 @@ andThen(request => {
Extends [FakeXMLHttpRequest](https://github.com/pretenderjs/FakeXMLHttpRequest) to register each new request with fakehr

Also has the convenience method `respondWithJson` that takes two arguments:
the HTTP status code as an int, and the response body as a plain object (that will be stringified by the function)
the HTTP status code as an int (optional, defaults to 200), and the response body as a plain object (also optional)

0 comments on commit c784cb0

Please sign in to comment.