From 47fe879f572e2cfb2ca1e40d1ebcdffdd34a79eb Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sun, 28 Apr 2024 00:49:02 -0700 Subject: [PATCH] chore: correct some typos and spelling errors (#1309) --- src/__tests__/role.js | 12 ++++++------ src/__tests__/wait-for-element-to-be-removed.js | 2 +- src/queries/role.ts | 2 +- src/screen.ts | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/__tests__/role.js b/src/__tests__/role.js index fe31c2ea..447a6e8b 100644 --- a/src/__tests__/role.js +++ b/src/__tests__/role.js @@ -199,16 +199,16 @@ test('can be filtered by accessible name', () => { `

Order

-

Delivery Adress

-
+

Delivery Address

+
-

Invoice Adress

-
+

Invoice Address

+
`, ) - const deliveryForm = getByRole('form', {name: 'Delivery Adress'}) + const deliveryForm = getByRole('form', {name: 'Delivery Address'}) expect(deliveryForm).not.toBeNull() expect( getQueriesForElement(deliveryForm).getByRole('button', {name: 'Submit'}), ).not.toBeNull() - const invoiceForm = getByRole('form', {name: 'Delivery Adress'}) + const invoiceForm = getByRole('form', {name: 'Delivery Address'}) expect(invoiceForm).not.toBeNull() expect( diff --git a/src/__tests__/wait-for-element-to-be-removed.js b/src/__tests__/wait-for-element-to-be-removed.js index 6ea0a091..4b6732e8 100644 --- a/src/__tests__/wait-for-element-to-be-removed.js +++ b/src/__tests__/wait-for-element-to-be-removed.js @@ -80,7 +80,7 @@ test('requires an unempty array of elements to exist first (function form)', () ) }) -test('after successful removal, fullfills promise with empty value (undefined)', () => { +test('after successful removal, fulfills promise with empty value (undefined)', () => { const {getByTestId} = renderIntoDocument(`
`) diff --git a/src/queries/role.ts b/src/queries/role.ts index 98b08848..e4dd395f 100644 --- a/src/queries/role.ts +++ b/src/queries/role.ts @@ -108,7 +108,7 @@ const queryAllByRole: AllByRole = ( /* istanbul ignore next */ // guard against unknown roles // All currently released ARIA versions support `aria-current` on all roles. - // Leaving this for symetry and forward compatibility + // Leaving this for symmetry and forward compatibility if ( allRoles.get(role as ARIARoleDefinitionKey)?.props['aria-current'] === undefined diff --git a/src/screen.ts b/src/screen.ts index fbe372ff..0c2c51e9 100644 --- a/src/screen.ts +++ b/src/screen.ts @@ -1,4 +1,4 @@ -// WARNING: `lz-string` only has a default export but statically we assume named exports are allowd +// WARNING: `lz-string` only has a default export but statically we assume named exports are allowed // TODO: Statically verify we don't rely on NodeJS implicit named imports. import lzString from 'lz-string' import {type OptionsReceived} from 'pretty-format'