diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-22 21:08:21 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-22 21:08:21 +0300 |
commit | 1cf95147eabbb193c1db2526e6c8888e950a3987 (patch) | |
tree | 88ae9b19860f7d0552efd048f47d494adcaa03af /spec/frontend/vuex_shared | |
parent | d6e421b21ed5574700c165cd3361094f4093ac72 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/vuex_shared')
-rw-r--r-- | spec/frontend/vuex_shared/modules/modal/actions_spec.js | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/spec/frontend/vuex_shared/modules/modal/actions_spec.js b/spec/frontend/vuex_shared/modules/modal/actions_spec.js new file mode 100644 index 00000000000..353dbcb522f --- /dev/null +++ b/spec/frontend/vuex_shared/modules/modal/actions_spec.js @@ -0,0 +1,31 @@ +import testAction from 'helpers/vuex_action_helper'; +import * as types from '~/vuex_shared/modules/modal/mutation_types'; +import * as actions from '~/vuex_shared/modules/modal/actions'; + +describe('Vuex ModalModule actions', () => { + describe('open', () => { + it('works', done => { + const data = { id: 7 }; + + testAction(actions.open, data, {}, [{ type: types.OPEN, payload: data }], [], done); + }); + }); + + describe('close', () => { + it('works', done => { + testAction(actions.close, null, {}, [{ type: types.CLOSE }], [], done); + }); + }); + + describe('show', () => { + it('works', done => { + testAction(actions.show, null, {}, [{ type: types.SHOW }], [], done); + }); + }); + + describe('hide', () => { + it('works', done => { + testAction(actions.hide, null, {}, [{ type: types.HIDE }], [], done); + }); + }); +}); |