Skip to content

Commit

Permalink
docs: clarify get vs find behavior differences (vuejs#2422)
Browse files Browse the repository at this point in the history
  • Loading branch information
KatWorkGit authored and nazarepiedady committed Jul 18, 2024
1 parent 5e627f8 commit 58325bb
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 58325bb

Please sign in to comment.