debian-mirror-gitlab/spec/frontend/jira_connect/store/mutations_spec.js

19 lines
441 B
JavaScript
Raw Normal View History

2021-03-08 18:12:59 +05:30
import mutations from '~/jira_connect/store/mutations';
import state from '~/jira_connect/store/state';
describe('JiraConnect store mutations', () => {
let localState;
beforeEach(() => {
localState = state();
});
describe('SET_ERROR_MESSAGE', () => {
it('sets error message', () => {
mutations.SET_ERROR_MESSAGE(localState, 'test error');
expect(localState.errorMessage).toBe('test error');
});
});
});