Skip to content

Commit b1e5b3a

Browse files
LiaoJimmyKent C. Dodds
authored and
Kent C. Dodds
committed
docs: Add missing characters in complex example (#404)
1 parent 4ada26b commit b1e5b3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ test('allows the user to login successfully', async () => {
251251

252252
// fill out the form
253253
fireEvent.change(getByLabelText(/username/i), {target: {value: 'chuck'}})
254-
fireEvent.change(getBylabelText(/password/i), {target: {value: 'norris'}})
254+
fireEvent.change(getByLabelText(/password/i), {target: {value: 'norris'}})
255255

256256
fireEvent.click(getByText(/submit/i))
257257

@@ -263,7 +263,7 @@ test('allows the user to login successfully', async () => {
263263
// otherwise you could use expect(alert.textContent).toMatch(/congrats/i)
264264
// but jest-dom will give you better error messages which is why it's recommended
265265
expect(alert).toHaveTextContent(/congrats/i)
266-
expect(window.localStorage.getItem('token')).toEqual(fakeUserReponse.token)
266+
expect(window.localStorage.getItem('token')).toEqual(fakeUserResponse.token)
267267
})
268268
```
269269

0 commit comments

Comments
 (0)