Skip to content

Commit

Permalink
docs: Add missing characters in complex example (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
LiaoJimmy authored and Kent C. Dodds committed Jul 14, 2019
1 parent 4ada26b commit b1e5b3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ test('allows the user to login successfully', async () => {

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

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

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

0 comments on commit b1e5b3a

Please sign in to comment.