diff options
author | Paul Slaughter <pslaughter@gitlab.com> | 2019-01-15 12:01:36 -0600 |
---|---|---|
committer | Paul Slaughter <pslaughter@gitlab.com> | 2019-01-16 09:33:09 -0600 |
commit | ff1b442801286f33257b3b37b8ac9f42eae60616 (patch) | |
tree | e0caf7d02db0c6426e4bdcf623f96448e3c9c8a8 /app | |
parent | d9e4e3f79661c01ea1f0dc30326ffae361228134 (diff) | |
download | gitlab-ce-ff1b442801286f33257b3b37b8ac9f42eae60616.tar.gz |
Export default in vuex_shared/modal/actions
**Why?**
This prevents erros when using actions in karma test.
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/vuex_shared/modules/modal/actions.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/assets/javascripts/vuex_shared/modules/modal/actions.js b/app/assets/javascripts/vuex_shared/modules/modal/actions.js index 552237e05c5..7b209909f69 100644 --- a/app/assets/javascripts/vuex_shared/modules/modal/actions.js +++ b/app/assets/javascripts/vuex_shared/modules/modal/actions.js @@ -15,3 +15,6 @@ export const show = ({ commit }) => { export const hide = ({ commit }) => { commit(types.HIDE); }; + +// prevent babel-plugin-rewire from generating an invalid default during karma tests +export default () => {}; |