diff options
author | Dennis Tang <dennis@dennistang.net> | 2018-05-14 11:16:24 +0000 |
---|---|---|
committer | Dennis Tang <dennis@dennistang.net> | 2018-05-14 11:16:24 +0000 |
commit | f1a22c6cf5cfd6551932c83ba7188a3d3ed7066c (patch) | |
tree | 6d3de20d599283df85003318eccf2c9dfaab735b | |
parent | 1a12471d315fac6e4d6a12ffa4f3331c29017602 (diff) | |
download | gitlab-ce-f1a22c6cf5cfd6551932c83ba7188a3d3ed7066c.tar.gz |
clarify that the function export should be default
-rw-r--r-- | doc/development/fe_guide/vuex.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/development/fe_guide/vuex.md b/doc/development/fe_guide/vuex.md index 0335109366a..bebd0edab57 100644 --- a/doc/development/fe_guide/vuex.md +++ b/doc/development/fe_guide/vuex.md @@ -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: `[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 |