Closed
Description
Version
1.0.0-beta.12
Reproduction link
https://jsbin.com/nopulunamo/3/edit?html,console,output
Steps to reproduce
-
create a wrapper by method mount , and pass listeners param
const wrapper = mount(myComponent, { listeners: { change: someFunction, }, });
What is expected?
wrapper.vm.$listerners = {
change: function invoker(){}
}
invoker.fns === someFunction
What is actually happening?
wrapper.vm.$listerners.change === someFunction