Skip to content

Commit 5be5549

Browse files
JavierMartinzalexkrolick
authored andcommitted
Fix data attribute query selector (#43)
1 parent 5059042 commit 5be5549

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guide-which-query.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ testid if you have to.
4545
```jsx
4646
// react-testing-library
4747
const { container } = render(<MyComponent />)
48-
const foo = container.querySelector(['data-foo="bar"'])
48+
const foo = container.querySelector('[data-foo="bar"]')
4949
```

0 commit comments

Comments
 (0)