Skip to content

Commit

Permalink
toHaveAttribute doesn't work (#524)
Browse files Browse the repository at this point in the history
Co-authored-by: Nick McCurdy <nick@nickmccurdy.com>
  • Loading branch information
DaleSeo and nickmccurdy committed Dec 22, 2020
1 parent 377e99c commit 481267b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -120,7 +120,7 @@ test('click', () => {
)

userEvent.click(screen.getByText('Check'))
expect(screen.getByLabelText('Check')).toHaveAttribute('checked', true)
expect(screen.getByLabelText('Check')).toBeChecked()
})
```

Expand Down

0 comments on commit 481267b

Please sign in to comment.