Skip to content

chore: Correct some typos and spelling errors #1309

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/__tests__/role.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,16 +199,16 @@ test('can be filtered by accessible name', () => {
`
<div>
<h1>Order</h1>
<h2>Delivery Adress</h2>
<form aria-label="Delivery Adress">
<h2>Delivery Address</h2>
<form aria-label="Delivery Address">
<label>
<div>Street</div>
<input type="text" />
</label>
<input type="submit" />
</form>
<h2>Invoice Adress</h2>
<form aria-label="Invoice Adress">
<h2>Invoice Address</h2>
<form aria-label="Invoice Address">
<label>
<div>Street</div>
<input type="text" />
Expand All @@ -218,14 +218,14 @@ test('can be filtered by accessible name', () => {
</div>`,
)

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(
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/wait-for-element-to-be-removed.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(`
<div data-testid="div"></div>
`)
Expand Down
2 changes: 1 addition & 1 deletion src/queries/role.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/screen.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down