Skip to content

Commit

Permalink
fix: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyiya committed Aug 22, 2021
1 parent 8eaa203 commit c87d99a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h1 align='center'>WIP···</h1>
<h1 align='center'>OHOOK</h1>

<p align='center'>:smiling_face_with_three_hearts: Another React Hook Library</p>

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ohook",
"version": "1.0.0-beta.2",
"version": "1.0.1",
"description": "oh hook !",
"scripts": {
"prepare": "husky install",
Expand Down
Original file line number Diff line number Diff line change
@@ -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()
Expand Down

0 comments on commit c87d99a

Please sign in to comment.