Skip to content

Conversation

UlanaXY
Copy link

@UlanaXY UlanaXY commented Oct 6, 2025

I think that I found a small typo in the test for useIntersectionObserver hook.

Two identical lines like below don't make sense to me.

expect(hook1.result.current).toBe(entry1);
expect(hook1.result.current).toBe(entry1);

I think that author probably wanted it to be like this:

expect(hook1.result.current).toBe(entry1);
expect(hook2.result.current).toBe(entry1);

@UlanaXY UlanaXY changed the title Fix small typo in test for useIntersectionObserver hook Fix small typo in the test for useIntersectionObserver hook Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant