Skip to content

Commit 688db75

Browse files
committed
typos
1 parent 61122fb commit 688db75

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,15 @@ Replaces `fetch()` with a sinon stub which, in addition to the default sinon beh
1919
* `string`: Either an exact url to match e.g. 'http://www.site.com/page.html' or, if the string begins with a `^`, the string following the `^` must begin the url e.g. '^http://www.site.com' would match 'http://www.site.com' or 'http://www.site.com/page.html'
2020
* `RegExp`: A regular expression to test the url against
2121
* `Function(url, opts)`: A function that is passed the url and opts `fetch` is called with and that returns a Boolean
22-
* `response`: Configures the response object returned by the mock. Can have one of the following values
22+
* `response`: Configures the response object returned by the mock. Can take any of the following values
2323
* `string`: creates a 200 response with the string as the response body
2424
* `object`: If the object contains any of the properties body, status, headers, throws; then these properties - all of them optional - are used to construct a response as follows
2525
* `body`: Retunred in the response body
2626
* `status`: Returned in the response status
2727
* `headers`: Returned in the response headers. They should be defined as an object literal (property names case-insensitive) which will be converted to a `Headers` instance
2828
* `throws`: If this property is present then a `Promise` rejected with the value of `throws` is returned
29-
As long as the object does not contain any of the above properties it is converted into a json string and this is returned as the body of a 200 response
29+
30+
As long as the object does not contain any of the above properties it is converted into a json string and this is returned as the body of a 200 response
3031
* `Function(url, opts)`: A function that is passed the url and opts `fetch()` is called with and that returns any of the responses listed above
3132
* `responses`: When `registerRoute()` has already been used to register some routes then `responses` can be used to override the default response. Its value should be an object mapping route names to responses, which should be similar to those listed immediately above e.g.
3233

0 commit comments

Comments
 (0)