Skip to content

Commit

Permalink
docs: clarify get vs find behavior differences (#2422)
Browse files Browse the repository at this point in the history
  • Loading branch information
KatWorkGit authored Apr 27, 2024
1 parent d7e3c2f commit ccf8756
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1278,9 +1278,9 @@ get(selector: string): Omit<DOMWrapper<Element>, 'exists'>
**Details:**
It is similar to `find`, but `get` throws instead of returning a ErrorWrapper.
It is similar to `find`, but `get` throws an error if an element is not found while [`find`](#find) will return an ErrorWrapper.
As a rule of thumb, always use get except when you are asserting something doesn't exist. In that case use [`find`](#find).
As a rule of thumb, always use `get` except when you are asserting something doesn't exist. In that case use [`find`](#find).
`Component.vue`:
Expand Down

0 comments on commit ccf8756

Please sign in to comment.