-
Notifications
You must be signed in to change notification settings - Fork 668
Dynamic classes not added correctly to wrapper classes when using shallowMount #1474
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
Comments
Not sure why this isn't working. Will need to look into it. For now you could use |
Edit: This is working for me:
Gives me
I wonder what's different here? Hm. |
Edit: ok, this happens when the component is a functional component. |
Problem is it is stringifed here
|
Ship it! 👏 |
Unfortunately, #1476 don't fix dynamic class as Array. I did fix (also fix events binding), can you review, @lmiller1990 ? |
Version
1.0.0-beta.32
Reproduction link
https://github.com/kierans/vue-test-utils-bug
Steps to reproduce
Card.vue
What is expected?
That the classes array/string will contain the value "negative-amount"
What is actually happening?
The classes array/string contains "[object Object]"
When running the app, the Card is correctly rendered with the "negative-amount" class being added.
The text was updated successfully, but these errors were encountered: