From 71a7cb0050bc5bb78fc718f50142819209937eae Mon Sep 17 00:00:00 2001 From: Caleb Eby Date: Tue, 30 Jul 2024 14:02:09 -0700 Subject: [PATCH] Lint --- .changeset/dirty-dolls-live.md | 2 +- .changeset/fuzzy-boxes-scream.md | 2 +- .../toHaveAccessibleErrorMessage.test.ts | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.changeset/dirty-dolls-live.md b/.changeset/dirty-dolls-live.md index a70941d5..dbc538b1 100644 --- a/.changeset/dirty-dolls-live.md +++ b/.changeset/dirty-dolls-live.md @@ -4,4 +4,4 @@ `aria-query` was updated to `5.3.0`. This update provides updated alignment with the ARIA spec, -and will affect Testing Library queries and `getAccessibilityTree` results. \ No newline at end of file +and will affect Testing Library queries and `getAccessibilityTree` results. diff --git a/.changeset/fuzzy-boxes-scream.md b/.changeset/fuzzy-boxes-scream.md index 3516af8f..5b39e70e 100644 --- a/.changeset/fuzzy-boxes-scream.md +++ b/.changeset/fuzzy-boxes-scream.md @@ -6,4 +6,4 @@ We are now using `@testing-library/jest-dom@6`. We now support all of the jest-dom matchers, except for the deprecated ones. - `toHaveErrorMessage` was deprecated, use `toHaveAccessibleErrorMessage` instead -- `toHaveRole` was added \ No newline at end of file +- `toHaveRole` was added diff --git a/tests/jest-dom-matchers/toHaveAccessibleErrorMessage.test.ts b/tests/jest-dom-matchers/toHaveAccessibleErrorMessage.test.ts index e64047f0..986ce824 100644 --- a/tests/jest-dom-matchers/toHaveAccessibleErrorMessage.test.ts +++ b/tests/jest-dom-matchers/toHaveAccessibleErrorMessage.test.ts @@ -26,10 +26,10 @@ test( 'Invalid time', // String performs a full-text match ); await expect( - expect(timeInput).toHaveAccessibleErrorMessage( - 'Invalid time' // String performs a full-text match - ) -).rejects.toThrowErrorMatchingInlineSnapshot(` + expect(timeInput).toHaveAccessibleErrorMessage( + 'Invalid time', // String performs a full-text match + ), + ).rejects.toThrowErrorMatchingInlineSnapshot(` "expect(element).toHaveAccessibleErrorMessage(expected) Expected element to have accessible error message: