Skip to content

Commit 9b0510b

Browse files
authored
doc: match toBeInTheDocument examples with good practices (#287)
1 parent 2cd17d3 commit 9b0510b

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
@@ -253,10 +253,10 @@ This allows you to assert whether an element is present in the document or not.
253253

254254
```javascript
255255
expect(
256-
queryByTestId(document.documentElement, 'html-element'),
256+
getByTestId(document.documentElement, 'html-element'),
257257
).toBeInTheDocument()
258258
expect(
259-
queryByTestId(document.documentElement, 'svg-element'),
259+
getByTestId(document.documentElement, 'svg-element'),
260260
).toBeInTheDocument()
261261
expect(
262262
queryByTestId(document.documentElement, 'does-not-exist'),

0 commit comments

Comments
 (0)