web
web copied to clipboard
Fix small typo in the test for useIntersectionObserver hook
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);