Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit 9f28605

Browse files
andre-matulionis-ifoodAndrewmat
authored andcommitted
Returns unmount function on testHook
1 parent ac58967 commit 9f28605

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ function TestHook({callback}) {
6767
}
6868

6969
function testHook(callback) {
70-
render(<TestHook callback={callback} />)
70+
const { unmount } = render(<TestHook callback={callback} />)
71+
return unmount
7172
}
7273

7374
function cleanup() {

0 commit comments

Comments
 (0)