diff --git a/README.md b/README.md index b088ed3..90d03a9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -

WIP···

+

OHOOK

:smiling_face_with_three_hearts: Another React Hook Library

diff --git a/package.json b/package.json index b90a16a..5afd6e5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ohook", - "version": "1.0.0-beta.2", + "version": "1.0.1", "description": "oh hook !", "scripts": { "prepare": "husky install", diff --git a/src/useMount/__test__/useDidMount.test.ts b/src/useMount/__test__/useMount.test.ts similarity index 78% rename from src/useMount/__test__/useDidMount.test.ts rename to src/useMount/__test__/useMount.test.ts index 3362cda..e64c5bf 100644 --- a/src/useMount/__test__/useDidMount.test.ts +++ b/src/useMount/__test__/useMount.test.ts @@ -1,10 +1,10 @@ import { renderHook } from '@testing-library/react-hooks/dom' -import { useDidMount } from '..' +import { useMount } from '..' describe('useMount', () => { it('should execute useMount if mount & only executed once', () => { const cb = jest.fn() - const { rerender } = renderHook(() => useDidMount(cb)) + const { rerender } = renderHook(() => useMount(cb)) expect(cb).toHaveBeenCalled() rerender()