-
Notifications
You must be signed in to change notification settings - Fork 665
data should be a function #812
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
Conversation
WTH do those tests fail now? confused ... |
}) | ||
wrapper.vm.test = 'some value' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eddyerburgh I had to remove the mocks: { test: 'some value'}
and replace it with this, otherwise the test woudl fail.
I suspect that this is because you can't actually mock properties for proxied data properties, but that didn't fail before because the data: { test: '' }
itself failed?
Did my change break the intended goal of the test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test is the first one written for localVue, and itcould be rewritten. The intent is to check that VTU mounts using the localVue constructor, so a better test would create a localVue constructor with createLocalVue, add a property to the localVue prototype, and mount a component that relies on that property existing.
Would you be able to rewrite it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will try tomorrow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might take a few days until I really have the time :/
Okay now I'm double-confused, the tests passed locally after d8101dc on CircleCI it breaks with a new error ... |
Thanks for this Thorsten , I've fixed this in #835 :) |
Yeah sorry, didn't have/make the time for this :/ |
closes #797