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
Cannot do unit test for vue-js-modal from 2.0.0.
Because in https://github.com/euvl/vue-js-modal/blob/master/src/PluginCore.js, show/hide function is defined as const.
So we can not mock for unit test.
I think there is no way to test in this case, maybe need to remove const for show/hide function.
Thanks.
Version:
v2.0.1
Example & screenshots:
I have checked stackoverflow for solutions and 100% sure that this issue is not not related to my code.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Problem:
Cannot do unit test for vue-js-modal from 2.0.0.
Because in
https://github.com/euvl/vue-js-modal/blob/master/src/PluginCore.js
, show/hide function is defined as const.So we can not mock for unit test.
I think there is no way to test in this case, maybe need to remove const for show/hide function.
Thanks.
Version:
v2.0.1
Example & screenshots:
The text was updated successfully, but these errors were encountered: