diff --git a/src/useIntersectionObserver/index.dom.test.ts b/src/useIntersectionObserver/index.dom.test.ts index 4916094e..373a3fd4 100644 --- a/src/useIntersectionObserver/index.dom.test.ts +++ b/src/useIntersectionObserver/index.dom.test.ts @@ -105,7 +105,7 @@ describe('useIntersectionObserver', () => { }); expect(hook1.result.current).toBe(entry1); - expect(hook1.result.current).toBe(entry1); + expect(hook2.result.current).toBe(entry1); }); it('should disconnect observer if last hook unmounted', () => {