axios-hooks
Advanced tools
Comparing version 1.5.0-0 to 1.5.0
@@ -5,2 +5,4 @@ # Changelog | ||
## [1.5.0](https://github.com/simoneb/axios-hooks/compare/v1.5.0-0...v1.5.0) (2019-10-23) | ||
## [1.5.0-0](https://github.com/simoneb/axios-hooks/compare/v1.4.1...v1.5.0-0) (2019-10-22) | ||
@@ -7,0 +9,0 @@ |
{ | ||
"name": "axios-hooks", | ||
"version": "1.5.0-0", | ||
"version": "1.5.0", | ||
"description": "axios-hooks", | ||
@@ -50,8 +50,8 @@ "keywords": [ | ||
"@babel/preset-env": "7.6.3", | ||
"@testing-library/react-hooks": "2.0.3", | ||
"@types/jest": "24.0.18", | ||
"@testing-library/react-hooks": "3.1.0", | ||
"@types/jest": "24.0.19", | ||
"@types/lru-cache": "5.1.0", | ||
"@types/node": "12.7.12", | ||
"@types/react": "16.9.5", | ||
"@types/react-dom": "16.9.1", | ||
"@types/node": "12.11.5", | ||
"@types/react": "16.9.9", | ||
"@types/react-dom": "16.9.2", | ||
"axios": "0.19.0", | ||
@@ -65,4 +65,4 @@ "babel-eslint": "10.0.3", | ||
"eslint-plugin-prettier": "3.1.1", | ||
"eslint-plugin-react-hooks": "2.1.2", | ||
"husky": "3.0.8", | ||
"eslint-plugin-react-hooks": "2.2.0", | ||
"husky": "3.0.9", | ||
"jest": "24.9.0", | ||
@@ -72,5 +72,5 @@ "lint-staged": "9.4.2", | ||
"prettier": "1.18.2", | ||
"react": "16.10.2", | ||
"react-dom": "16.10.2", | ||
"react-test-renderer": "16.10.2", | ||
"react": "16.11.0", | ||
"react-dom": "16.11.0", | ||
"react-test-renderer": "16.11.0", | ||
"rimraf": "3.0.0", | ||
@@ -77,0 +77,0 @@ "standard-version": "7.0.0", |
@@ -88,14 +88,2 @@ import { renderHook, act } from '@testing-library/react-hooks' | ||
it('should return the same reference to the fetch function', async () => { | ||
axios.mockResolvedValue({ data: 'whatever' }) | ||
const { result, rerender } = renderHook(() => useAxios('')) | ||
const firstRefetch = result.current[1] | ||
rerender() | ||
expect(result.current[1]).toBe(firstRefetch) | ||
}) | ||
describe('manual option', () => { | ||
@@ -102,0 +90,0 @@ it('should set loading to false', async () => { |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
43627
904