summaryrefslogtreecommitdiff
path: root/spec/javascripts/vuex_shared
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2019-03-23 17:52:35 +0100
committerWinnie Hellmann <winnie@gitlab.com>2019-03-23 17:53:46 +0100
commit514ee63826e47229bfd03bdbb740f2dd1eae1d03 (patch)
tree3f0d96a4402e8aa54c375084cc4c5e6cf546824b /spec/javascripts/vuex_shared
parent6d330015dfdb1979a0773c87c53b84cc86b28a6d (diff)
downloadgitlab-ce-514ee63826e47229bfd03bdbb740f2dd1eae1d03.tar.gz
Move some tests from Karma to Jest
Diffstat (limited to 'spec/javascripts/vuex_shared')
-rw-r--r--spec/javascripts/vuex_shared/modules/modal/mutations_spec.js49
1 files changed, 0 insertions, 49 deletions
diff --git a/spec/javascripts/vuex_shared/modules/modal/mutations_spec.js b/spec/javascripts/vuex_shared/modules/modal/mutations_spec.js
deleted file mode 100644
index d07f8ba1e65..00000000000
--- a/spec/javascripts/vuex_shared/modules/modal/mutations_spec.js
+++ /dev/null
@@ -1,49 +0,0 @@
-import mutations from '~/vuex_shared/modules/modal/mutations';
-import * as types from '~/vuex_shared/modules/modal/mutation_types';
-
-describe('Vuex ModalModule mutations', () => {
- describe(types.SHOW, () => {
- it('sets isVisible to true', () => {
- const state = {
- isVisible: false,
- };
-
- mutations[types.SHOW](state);
-
- expect(state).toEqual({
- isVisible: true,
- });
- });
- });
-
- describe(types.HIDE, () => {
- it('sets isVisible to false', () => {
- const state = {
- isVisible: true,
- };
-
- mutations[types.HIDE](state);
-
- expect(state).toEqual({
- isVisible: false,
- });
- });
- });
-
- describe(types.OPEN, () => {
- it('sets data and sets isVisible to true', () => {
- const data = { id: 7 };
- const state = {
- isVisible: false,
- data: null,
- };
-
- mutations[types.OPEN](state, data);
-
- expect(state).toEqual({
- isVisible: true,
- data,
- });
- });
- });
-});