Skip to content

Conversation

patrickfatrick
Copy link
Contributor

I reused the testAction for all my action tests, so I made it a little more reusable for different situations, so I can pass in mocked arguments into the action as an array, and also check for more than one item in the payload. Lastly, I added a check at the end to handle scenarios where an action is called that leads to no mutations being dispatched.

I reused the testAction for all my action tests, so I made it a little more robust so I can pass in mocked arguments into the action as an array, and also check for more than one item in the payload. Lastly, I added a check at the end to handle scenarios where an action is called that leads to no mutations being dispatched.
yyx990803 added a commit that referenced this pull request Feb 16, 2016
args in testAction, payload as array, check for no dispatches
@yyx990803 yyx990803 merged commit b873ade into vuejs:master Feb 16, 2016
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.

2 participants