summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDennis Tang <dennis@dennistang.net>2018-05-14 11:16:24 +0000
committerDennis Tang <dennis@dennistang.net>2018-05-14 11:16:24 +0000
commitf1a22c6cf5cfd6551932c83ba7188a3d3ed7066c (patch)
tree6d3de20d599283df85003318eccf2c9dfaab735b /doc
parent1a12471d315fac6e4d6a12ffa4f3331c29017602 (diff)
downloadgitlab-ce-f1a22c6cf5cfd6551932c83ba7188a3d3ed7066c.tar.gz
clarify that the function export should be default
Diffstat (limited to 'doc')
-rw-r--r--doc/development/fe_guide/vuex.md2
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