-
Notifications
You must be signed in to change notification settings - Fork 257
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
setData doesn't work #538
Comments
I found out that if I don't pass data function to mount, it works fine.
|
Seems like a bug - it should work as you are describing in the first test, too. I will take a look (or you can, if you have time!) |
I fixed it: #540 If you can give me a quick review I will do a release with this! |
I'm not familiar with this repository, so I'm not sure if I can review anything here. |
All good, someone reviewed it. Good way to learn it to review :) |
wrapper.setData
doesn't set data in component. It sets data only inwrapper.vm
object.I created a simple components:
And a test:
And the test fails on
expect(wrapper.vm.isFieldNull).toBe(false);
becausefield
is still null.Am I doing something wrong?
The text was updated successfully, but these errors were encountered: