Skip to content

Commit e59ea97

Browse files
authored
docs: fix api docs rtl (#1168)
1 parent 6588bc6 commit e59ea97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/react-testing-library/api.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ These will **not** be passed if you call `rerender` without props.
361361
import {renderHook} from '@testing-library/react'
362362

363363
test('returns logged in user', () => {
364-
const {result, rerender} = renderHook(({name} = {}) => name, {
364+
const {result, rerender} = renderHook((props = {}) => props, {
365365
initialProps: {name: 'Alice'},
366366
})
367367
expect(result.current).toEqual({name: 'Alice'})

0 commit comments

Comments
 (0)