Skip to content

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

Closed
wants to merge 3 commits into from
Closed

data should be a function #812

wants to merge 3 commits into from

Conversation

LinusBorg
Copy link
Member

closes #797

@LinusBorg
Copy link
Member Author

WTH do those tests fail now? confused ...

})
wrapper.vm.test = 'some value'
Copy link
Member Author

@LinusBorg LinusBorg Jul 6, 2018

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?

Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will try tomorrow

Copy link
Member Author

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 :/

@LinusBorg
Copy link
Member Author

Okay now I'm double-confused, the tests passed locally after d8101dc

on CircleCI it breaks with a new error ...

@LinusBorg LinusBorg self-assigned this Jul 10, 2018
@eddyerburgh
Copy link
Member

Thanks for this Thorsten , I've fixed this in #835 :)

@LinusBorg
Copy link
Member Author

Yeah sorry, didn't have/make the time for this :/

@eddyerburgh eddyerburgh deleted the LinusBorg-patch-issue-797 branch July 22, 2018 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

data should be function
2 participants