Skip to content

Commit

Permalink
fix(test-utils/wrapper): clarify deprecation note for wrong "get" usa…
Browse files Browse the repository at this point in the history
…ge (#1688)

If `wrapper.get` was called with a vue component instance, a misleading deprecation note was shown
to the user. This fix includes the `get` method into the deprecation message

fix #1687

Co-authored-by: Valentin Palkovič <external.valentin.palkovic@kuehne-nagel.com>
  • Loading branch information
valentinpalkovic and Valentin Palkovič authored Sep 21, 2020
1 parent e0cbb16 commit a696325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/test-utils/src/wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export default class Wrapper implements BaseWrapper {
const selector = getSelector(rawSelector, 'find')
if (selector.type !== DOM_SELECTOR) {
warnDeprecated(
'finding components with `find`',
'finding components with `find` or `get`',
'Use `findComponent` instead'
)
}
Expand Down

0 comments on commit a696325

Please sign in to comment.