Skip to content

Commit f0ed63b

Browse files
wabuMikebu-michael
andauthored
uses 'findComponent' to find components instead of 'find' (#1656)
Co-authored-by: Michael Haak <[email protected]>
1 parent f94a62d commit f0ed63b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: docs/guides/common-tips.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ import ChildComponent from '@/components/ChildComponent'
142142
describe('ParentComponent', () => {
143143
it("displays 'Emitted!' when custom event is emitted", () => {
144144
const wrapper = mount(ParentComponent)
145-
wrapper.find(ChildComponent).vm.$emit('custom')
145+
wrapper.findComponent(ChildComponent).vm.$emit('custom')
146146
expect(wrapper.html()).toContain('Emitted!')
147147
})
148148
})

0 commit comments

Comments
 (0)