Skip to content

Commit a696325

Browse files
valentinpalkovicValentin Palkovič
and
Valentin Palkovič
authored
fix(test-utils/wrapper): clarify deprecation note for wrong "get" usage (vuejs#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 vuejs#1687 Co-authored-by: Valentin Palkovič <[email protected]>
1 parent e0cbb16 commit a696325

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/test-utils/src/wrapper.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ export default class Wrapper implements BaseWrapper {
224224
const selector = getSelector(rawSelector, 'find')
225225
if (selector.type !== DOM_SELECTOR) {
226226
warnDeprecated(
227-
'finding components with `find`',
227+
'finding components with `find` or `get`',
228228
'Use `findComponent` instead'
229229
)
230230
}

0 commit comments

Comments
 (0)