fetch-mock-jest
Advanced tools
Comparing version 0.1.3 to 0.2.1
{ | ||
"name": "fetch-mock-jest", | ||
"version": "0.1.3", | ||
"version": "0.2.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "fetch-mock-jest.js", |
@@ -22,3 +22,3 @@ # fetch-mock-jest | ||
All the built in jest function inspection assertions can be used, e.g. `expect(fetchMock).toHaveBeenCalledWith('http://example.com')`. | ||
All the built in jest function inspection assertions can be used, e.g. `expect(fetchMock).toHaveBeenCalledWith('http://example.com')`. | ||
@@ -45,3 +45,4 @@ `fetch.mockClear()` can be used to reset the call history | ||
These would also be useful jest extensions: | ||
- `toHaveFetched` | ||
- `toHaveRespondedWith({status, body, headers})` (using objectMatching semantics) |
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
Mixed license
License(Experimental) Package contains multiple licenses.
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
19995
13
47
1