web icon indicating copy to clipboard operation
web copied to clipboard

Fix small typo in the test for useIntersectionObserver hook

Open UlanaXY opened this issue 5 months ago • 0 comments

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 avatar Oct 06 '25 12:10 UlanaXY