Skip to content

Commit 3654f5c

Browse files
authored
docs: Explicitly mention what is thrown (testing-library#720)
1 parent 0d8f36f commit 3654f5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/dom-testing-library/api-queries.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ an error if no elements match.
2626

2727
`queryBy*` queries return the first matching node for a query, and return `null`
2828
if no elements match. This is useful for asserting an element that is not
29-
present. This throws if more than one match is found (use `queryAllBy` instead).
29+
present. This throws an error if more than one match is found (use `queryAllBy` instead).
3030

3131
### queryAllBy
3232

0 commit comments

Comments
 (0)