From c784cb0227b03b720033fbf27e42dfa3142bacce Mon Sep 17 00:00:00 2001 From: Mitchal Date: Fri, 2 Mar 2018 13:22:05 +0100 Subject: [PATCH] docs(fakeXhr): add short note about the optional nature of the arguments of `respondWithJson` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 22e420f..3ab794e 100644 --- a/README.md +++ b/README.md @@ -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)