-
Notifications
You must be signed in to change notification settings - Fork 664
Closed
Description
Version
1.0.0-beta.29
Reproduction link
Steps to reproduce
describe('aaa', () => {
const Com = Vue.extend({
render(h) {
return h('div')
}
})
const wrapper = mount({
render(h) {
return h(Com, { ref: 'com' },'aaa')
}
})
it('wrapper.vm.$refs.com.$scopedSlots:', () => {
// wrapper.vm.$refs.com.$scopedSlots: {default:[Function]} ??????
console.log("wrapper.vm.$refs.com.$scopedSlots:", wrapper.vm.$refs.com.$scopedSlots)
// wrapper.vm.$refs.com.$slots: {default:[VNode]}
console.log("wrapper.vm.$refs.com.$slots:", wrapper.vm.$refs.com.$slots)
})
})What is expected?
$scopedSlots.default ===undefined
What is actually happening?
$scopedSlots: {default:[Function]}
Metadata
Metadata
Assignees
Labels
No labels