Skip to content

Commit c6f47c1

Browse files
authored
fix: extra arguments
1 parent f42a2d5 commit c6f47c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/usage/ssr.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ import { renderHook, act } from '@testing-library/react-hooks/server'
4646
import useCounter from './useCounter'
4747

4848
test('should increment counter', () => {
49-
const { result } = renderHook(() => useCounter(0))
49+
const { result } = renderHook(() => useCounter())
5050

5151
act(() => {
5252
result.current.increment()
@@ -64,7 +64,7 @@ import { renderHook, act } from '@testing-library/react-hooks/server'
6464
import useCounter from './useCounter'
6565

6666
test('should increment counter', () => {
67-
const { result, hydrate } = renderHook(() => useCounter(0))
67+
const { result, hydrate } = renderHook(() => useCounter())
6868

6969
hydrate()
7070

0 commit comments

Comments
 (0)