@idearium/fetch
Advanced tools
Comparing version 2.0.0-beta.1 to 2.0.2
# @idearium/fetch | ||
## v2.0.0-beta.1 | ||
## v2.0.2 | ||
### Changed | ||
- Re-release with updated version number. | ||
## v2.0.1 | ||
### Changed | ||
- Re-release with updated version number. | ||
## v2.0.0 | ||
### Removed | ||
@@ -6,0 +18,0 @@ |
{ | ||
"name": "@idearium/fetch", | ||
"version": "2.0.0-beta.1", | ||
"version": "2.0.2", | ||
"description": "A package to make fetching trivial.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -48,2 +48,18 @@ 'use strict'; | ||
it('result contains the main response properties', async () => { | ||
expect.assertions(6); | ||
fetchMock.get(testUrl, {}); | ||
const response = await fetchApi(testUrl); | ||
// https://developer.mozilla.org/en-US/docs/Web/API/Response#properties | ||
expect(response).toHaveProperty('headers'); | ||
expect(response).toHaveProperty('ok'); | ||
expect(response).toHaveProperty('redirected'); | ||
expect(response).toHaveProperty('status'); | ||
expect(response).toHaveProperty('statusText'); | ||
expect(response).toHaveProperty('url'); | ||
}); | ||
it('automatically sets the content-type header', async () => { | ||
@@ -50,0 +66,0 @@ expect.assertions(1); |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
4516
114
1