Skip to content

Commit e31086c

Browse files
authored
Update test-utils.ts (#302)
1 parent 5ed2118 commit e31086c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test-utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ export function mockIsIntersecting(element: Element, isIntersecting: boolean) {
6464
time: Date.now() - instance.time,
6565
},
6666
]
67-
if (act) act(() => cb(entry))
68-
else cb(entry)
67+
if (act) act(() => cb(entry, instance))
68+
else cb(entry, instance)
6969
} else {
7070
throw new Error(
7171
'No IntersectionObserver instance found for element. Is it still mounted in the DOM?',

0 commit comments

Comments
 (0)