Skip to content

Commit

Permalink
chore: correct some typos and spelling errors (#1309)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdufresne authored Apr 28, 2024
1 parent 7917358 commit 47fe879
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
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

0 comments on commit 47fe879

Please sign in to comment.