Skip to content

Commit

Permalink
Convert '\d)' numbering system to '\d.' to match markdown standards
Browse files Browse the repository at this point in the history
  • Loading branch information
D-Pow committed Mar 23, 2020
1 parent 1165f70 commit 8e335b8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ cases where the browser doesn't support them).
<a name="final-notes"></a>
## Final notes

1) This mocks the usage of `XMLHttpRequest` and `fetch` such that the response is always valid.
1. This mocks the usage of `XMLHttpRequest` and `fetch` such that the response is always valid.
This means that the instance attributes below are always set. If you want to change any of these, feel free to do
so within `xhr.onreadystatechange`/`fetch().then(fn)`.

Expand All @@ -515,15 +515,15 @@ so within `xhr.onreadystatechange`/`fetch().then(fn)`.
response.type = 'basic';
```

2) This library also works with other members of the [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API#Fetch_Interfaces),
2. This library also works with other members of the [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API#Fetch_Interfaces),
so you can alternatively use an instance of the `Request` class in your `fetch()` calls, e.g. `fetch(new Request(url, options))`.

3) You may import either the `MockRequests` default export or any of its individual fields, e.g. <br />
3. You may import either the `MockRequests` default export or any of its individual fields, e.g. <br />
`import MockRequests, { setMockUrlResponse } from 'mock-requests';`

4) This works with any environment that uses either `fetch` or `XMLHttpRequest`, regardless of if said
environment is a browser, web/service worker, or a Node script. As long as they are defined natively or
by polyfill, any usage of `fetch`/`XMLHttpRequest` request to a URL configured by `MockRequests` will be
4. This works with any environment that uses either `fetch` or `XMLHttpRequest`, regardless of if said
environment is a browser, web/service worker, or a Node script. As long as they are defined (natively or
by polyfill), any usage of `fetch`/`XMLHttpRequest` request to a URL configured by `MockRequests` will be
mocked appropriately. For example,

```javascript
Expand Down

0 comments on commit 8e335b8

Please sign in to comment.