Skip to content

Commit

Permalink
docs: add deprecation warning to wapper contains (#1612)
Browse files Browse the repository at this point in the history
  • Loading branch information
SmilingJoe committed Jul 12, 2020
1 parent 69ea054 commit ed070d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/api/wrapper/contains.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## contains

::: warning Deprecation warning
Using `contains` is deprecated and will be removed in future releases. Use [`find`](./find.md) for DOM nodes (using `querySelector` syntax), [`findComponent`](./findComponent.md) for components, or [`wrapper.get`](./get.md) instead.
:::

Assert `Wrapper` contains an element or component matching [selector](../selectors.md).

- **Arguments:**
Expand Down

0 comments on commit ed070d7

Please sign in to comment.