diff options
Diffstat (limited to 'spec/frontend/jira_connect/store/mutations_spec.js')
-rw-r--r-- | spec/frontend/jira_connect/store/mutations_spec.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/frontend/jira_connect/store/mutations_spec.js b/spec/frontend/jira_connect/store/mutations_spec.js new file mode 100644 index 00000000000..d1f9d22b3de --- /dev/null +++ b/spec/frontend/jira_connect/store/mutations_spec.js @@ -0,0 +1,18 @@ +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'); + }); + }); +}); |