From c43eea817fd7d03e026a36ea6bbccae043beb293 Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Wed, 15 Jul 2026 08:45:19 +0200 Subject: [PATCH] Improve wording in unit tests --- src/useIntersectionObserver.spec.ts | 2 +- src/useMutationObserver.spec.ts | 2 +- src/useResizeObserver.spec.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.51.2