Skip to content

wrapper.vm.$listeners not equal the actual vueInstance.$listeners #472

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Hanruis opened this issue Mar 16, 2018 · 1 comment
Closed

wrapper.vm.$listeners not equal the actual vueInstance.$listeners #472

Hanruis opened this issue Mar 16, 2018 · 1 comment
Labels

Comments

@Hanruis
Copy link

Hanruis commented Mar 16, 2018

Version

1.0.0-beta.12

Reproduction link

https://jsbin.com/nopulunamo/3/edit?html,console,output

Steps to reproduce

  1. 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  
@eddyerburgh
Copy link
Member

Can you provide a link to a repo with a minimal reproduction?

@LinusBorg LinusBorg changed the title wrapper.vm.$listeners not equal the actual vueInsatnce.$lisenters wrapper.vm.$listeners not equal the actual vueInstance.$listeners Mar 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants