Commit f1a22c6c authored by Dennis Tang's avatar Dennis Tang

clarify that the function export should be default

parent 1a12471d
...@@ -356,7 +356,7 @@ describe('component', () => { ...@@ -356,7 +356,7 @@ describe('component', () => {
Because we're currently using [`babel-plugin-rewire`](https://github.com/speedskater/babel-plugin-rewire), you may encounter the following error when testing your Vuex actions and getters: Because we're currently using [`babel-plugin-rewire`](https://github.com/speedskater/babel-plugin-rewire), you may encounter the following error when testing your Vuex actions and getters:
`[vuex] actions should be function or object with "handler" function` `[vuex] actions should be function or object with "handler" function`
To prevent this error from happening, you need to export an empty function: To prevent this error from happening, you need to export an empty function as `default`:
``` ```
// getters.js or actions.js // getters.js or actions.js
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment