diff options
Diffstat (limited to 'spec/frontend/notes/stores/mutation_spec.js')
-rw-r--r-- | spec/frontend/notes/stores/mutation_spec.js | 46 |
1 files changed, 10 insertions, 36 deletions
diff --git a/spec/frontend/notes/stores/mutation_spec.js b/spec/frontend/notes/stores/mutation_spec.js index 2618c3a53b8..ec4de925721 100644 --- a/spec/frontend/notes/stores/mutation_spec.js +++ b/spec/frontend/notes/stores/mutation_spec.js @@ -377,6 +377,16 @@ describe('Notes Store mutations', () => { }); }); + describe('SET_RESOLVING_DISCUSSION', () => { + it('should set resolving discussion state', () => { + const state = {}; + + mutations.SET_RESOLVING_DISCUSSION(state, true); + + expect(state.isResolvingDiscussion).toEqual(true); + }); + }); + describe('UPDATE_NOTE', () => { it('should update a note', () => { const state = { @@ -687,42 +697,6 @@ describe('Notes Store mutations', () => { }); }); - describe('TOGGLE_BLOCKED_ISSUE_WARNING', () => { - it('should set isToggleBlockedIssueWarning as true', () => { - const state = { - discussions: [], - targetNoteHash: null, - lastFetchedAt: null, - isToggleStateButtonLoading: false, - isToggleBlockedIssueWarning: false, - notesData: {}, - userData: {}, - noteableData: {}, - }; - - mutations.TOGGLE_BLOCKED_ISSUE_WARNING(state, true); - - expect(state.isToggleBlockedIssueWarning).toEqual(true); - }); - - it('should set isToggleBlockedIssueWarning as false', () => { - const state = { - discussions: [], - targetNoteHash: null, - lastFetchedAt: null, - isToggleStateButtonLoading: false, - isToggleBlockedIssueWarning: true, - notesData: {}, - userData: {}, - noteableData: {}, - }; - - mutations.TOGGLE_BLOCKED_ISSUE_WARNING(state, false); - - expect(state.isToggleBlockedIssueWarning).toEqual(false); - }); - }); - describe('SET_APPLYING_BATCH_STATE', () => { const buildDiscussions = suggestionsInfo => { const suggestions = suggestionsInfo.map(({ suggestionId }) => ({ id: suggestionId })); |