diff --git a/src/useIntersectionObserver.spec.ts b/src/useIntersectionObserver.spec.ts index 52589c9..99a8057 100644 --- a/src/useIntersectionObserver.spec.ts +++ b/src/useIntersectionObserver.spec.ts @@ -64,7 +64,7 @@ describe('useIntersectionObserver()', () => { expect(result.current).toBe(undefined); }); - itIfWindowDefined('attaches event listener to element properly', async () => { + itIfWindowDefined('observes the given element', async () => { const element = document.createElement('div'); const listener = () => { // Intentionally empty diff --git a/src/useMutationObserver.spec.ts b/src/useMutationObserver.spec.ts index c977329..364ae5b 100644 --- a/src/useMutationObserver.spec.ts +++ b/src/useMutationObserver.spec.ts @@ -31,7 +31,7 @@ describe('useMutationObserver()', () => { expect(result.current).toBe(undefined); }); - itIfWindowDefined('attaches event listener to element properly', async () => { + itIfWindowDefined('observes the given element', async () => { const element = document.createElement('div'); const listener = vi.fn(); diff --git a/src/useResizeObserver.spec.ts b/src/useResizeObserver.spec.ts index f990842..2c0002f 100644 --- a/src/useResizeObserver.spec.ts +++ b/src/useResizeObserver.spec.ts @@ -58,7 +58,7 @@ describe('useResizeObserver()', () => { expect(result.current).toBe(undefined); }); - itIfWindowDefined('attaches event listener to element properly', async () => { + itIfWindowDefined('observes the given element', async () => { const element = document.createElement('div'); const listener = () => { // Intentionally empty