Skip to content

Commit 47fe879

Browse files
authored
chore: correct some typos and spelling errors (#1309)
1 parent 7917358 commit 47fe879

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/__tests__/role.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -199,16 +199,16 @@ test('can be filtered by accessible name', () => {
199199
`
200200
<div>
201201
<h1>Order</h1>
202-
<h2>Delivery Adress</h2>
203-
<form aria-label="Delivery Adress">
202+
<h2>Delivery Address</h2>
203+
<form aria-label="Delivery Address">
204204
<label>
205205
<div>Street</div>
206206
<input type="text" />
207207
</label>
208208
<input type="submit" />
209209
</form>
210-
<h2>Invoice Adress</h2>
211-
<form aria-label="Invoice Adress">
210+
<h2>Invoice Address</h2>
211+
<form aria-label="Invoice Address">
212212
<label>
213213
<div>Street</div>
214214
<input type="text" />
@@ -218,14 +218,14 @@ test('can be filtered by accessible name', () => {
218218
</div>`,
219219
)
220220

221-
const deliveryForm = getByRole('form', {name: 'Delivery Adress'})
221+
const deliveryForm = getByRole('form', {name: 'Delivery Address'})
222222
expect(deliveryForm).not.toBeNull()
223223

224224
expect(
225225
getQueriesForElement(deliveryForm).getByRole('button', {name: 'Submit'}),
226226
).not.toBeNull()
227227

228-
const invoiceForm = getByRole('form', {name: 'Delivery Adress'})
228+
const invoiceForm = getByRole('form', {name: 'Delivery Address'})
229229
expect(invoiceForm).not.toBeNull()
230230

231231
expect(

src/__tests__/wait-for-element-to-be-removed.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ test('requires an unempty array of elements to exist first (function form)', ()
8080
)
8181
})
8282

83-
test('after successful removal, fullfills promise with empty value (undefined)', () => {
83+
test('after successful removal, fulfills promise with empty value (undefined)', () => {
8484
const {getByTestId} = renderIntoDocument(`
8585
<div data-testid="div"></div>
8686
`)

src/queries/role.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const queryAllByRole: AllByRole = (
108108
/* istanbul ignore next */
109109
// guard against unknown roles
110110
// All currently released ARIA versions support `aria-current` on all roles.
111-
// Leaving this for symetry and forward compatibility
111+
// Leaving this for symmetry and forward compatibility
112112
if (
113113
allRoles.get(role as ARIARoleDefinitionKey)?.props['aria-current'] ===
114114
undefined

src/screen.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// WARNING: `lz-string` only has a default export but statically we assume named exports are allowd
1+
// WARNING: `lz-string` only has a default export but statically we assume named exports are allowed
22
// TODO: Statically verify we don't rely on NodeJS implicit named imports.
33
import lzString from 'lz-string'
44
import {type OptionsReceived} from 'pretty-format'

0 commit comments

Comments
 (0)