Commit 7a255af4 authored by Winnie Hellmann's avatar Winnie Hellmann

Wrap modal mutation names in template strings

parent 2704c4a5
...@@ -2,7 +2,7 @@ import mutations from '~/vuex_shared/modules/modal/mutations'; ...@@ -2,7 +2,7 @@ import mutations from '~/vuex_shared/modules/modal/mutations';
import * as types from '~/vuex_shared/modules/modal/mutation_types'; import * as types from '~/vuex_shared/modules/modal/mutation_types';
describe('Vuex ModalModule mutations', () => { describe('Vuex ModalModule mutations', () => {
describe(types.SHOW, () => { describe(`${types.SHOW}`, () => {
it('sets isVisible to true', () => { it('sets isVisible to true', () => {
const state = { const state = {
isVisible: false, isVisible: false,
...@@ -16,7 +16,7 @@ describe('Vuex ModalModule mutations', () => { ...@@ -16,7 +16,7 @@ describe('Vuex ModalModule mutations', () => {
}); });
}); });
describe(types.HIDE, () => { describe(`${types.HIDE}`, () => {
it('sets isVisible to false', () => { it('sets isVisible to false', () => {
const state = { const state = {
isVisible: true, isVisible: true,
...@@ -30,7 +30,7 @@ describe('Vuex ModalModule mutations', () => { ...@@ -30,7 +30,7 @@ describe('Vuex ModalModule mutations', () => {
}); });
}); });
describe(types.OPEN, () => { describe(`${types.OPEN}`, () => {
it('sets data and sets isVisible to true', () => { it('sets data and sets isVisible to true', () => {
const data = { id: 7 }; const data = { id: 7 };
const state = { const state = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment