Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wheresrhys authored Mar 14, 2020
1 parent 7073d8e commit 592919f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ Wrapper around [fetch-mock](http://www.wheresrhys.co.uk/fetch-mock) - a comprehe

The example at the bottom of this readme demonstrates the intuitive API, but shows off only a fraction of fetch-mock's functionality. Features include:

- helpers for all common http methods and for responding a limited number of times
- declarative matching for most aspects of a http request
- delayed responses
- spying on real network requests
- support for advanced fetch behaviours, such as streaming responses and aborting
- mocks most of the fetch API spec, even advanced behaviours such as streaming and aborting
- declarative matching for most aspects of a http request, including url, headers, body and query parameters
- shorthands for the most commonly used features, such as matching a http method or matching one fetch only
- support for delaying responses, or using your own async functions to define custom race conditions
- can be used as a spy to observe real network requests
- isomorphic, and supports either a global fetch instance or a locally required instanceg

# Installation

Expand Down

0 comments on commit 592919f

Please sign in to comment.