You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our tests we often validate default data and prop values for the component under test using something like this:
componentUnderTest.data().should.deep.equal({// all expected data values go here});componentUnderTest.propsData().should.deep.equal({// all expected props values go here});
We're using v4.2.0 and this works nicely for calls to data(), and it does also work when calling propsData(). However, when calling propsData(), we always get the warning:
functions returned by propsData() will not have this bound to the vue instance. Calling a propsData function that uses this will result in an error. You can access propsData functions by using the vue instance. e.g. to call a method function named propsDataFunc, call wrapper.vm.$props.propsDataFunc(). See #15');
I understand the reason for this warning message, but its muddying up my test output. Is there a way I can suppress it without muting other potential warnings from avoriaz?
The text was updated successfully, but these errors were encountered:
In our tests we often validate default data and prop values for the component under test using something like this:
We're using v4.2.0 and this works nicely for calls to data(), and it does also work when calling propsData(). However, when calling propsData(), we always get the warning:
I understand the reason for this warning message, but its muddying up my test output. Is there a way I can suppress it without muting other potential warnings from avoriaz?
The text was updated successfully, but these errors were encountered: