fetch-mock
Advanced tools
Comparing version 2.2.15 to 2.3.0
{ | ||
"name": "fetch-mock", | ||
"version": "2.2.15", | ||
"version": "2.3.0", | ||
"description": "Mock http requests made using fetch (or isomorphic-fetch)", | ||
@@ -5,0 +5,0 @@ "main": "es5/client.js", |
@@ -57,4 +57,8 @@ # fetch-mock [![Build Status](https://travis-ci.org/wheresrhys/fetch-mock.svg?branch=master)](https://travis-ci.org/wheresrhys/fetch-mock) [![Coverage Status](https://coveralls.io/repos/wheresrhys/fetch-mock/badge.svg)](https://coveralls.io/r/wheresrhys/fetch-mock) | ||
* `response` [required]: as specified above | ||
* `mock(routes)` - array of route configuration objects | ||
* `mock(config)` - object containing more complex config for fine grained control over every aspect of mocking behaviour. May have the following properties | ||
#### `mock(routes)` | ||
Pass in an array of route configuration objects | ||
#### `mock(config)` | ||
Pas in an object containing more complex config for fine grained control over every aspect of mocking behaviour. May have the following properties | ||
- `routes`: Either a single route config object or an array of them (see above) | ||
@@ -61,0 +65,0 @@ - `responses`: When `registerRoute()` (see below) 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 provided in the `response` property of stanadard route configurations e.g. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57442
262