diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-20 14:10:13 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-20 14:10:13 +0300 |
commit | 0ea3fcec397b69815975647f5e2aa5fe944a8486 (patch) | |
tree | 7979381b89d26011bcf9bdc989a40fcc2f1ed4ff /spec/frontend/boards/stores/mutations_spec.js | |
parent | 72123183a20411a36d607d70b12d57c484394c8e (diff) |
Add latest changes from gitlab-org/gitlab@15-1-stable-eev15.1.0-rc42
Diffstat (limited to 'spec/frontend/boards/stores/mutations_spec.js')
-rw-r--r-- | spec/frontend/boards/stores/mutations_spec.js | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/spec/frontend/boards/stores/mutations_spec.js b/spec/frontend/boards/stores/mutations_spec.js index 738737bf4b6..7d79993a0ee 100644 --- a/spec/frontend/boards/stores/mutations_spec.js +++ b/spec/frontend/boards/stores/mutations_spec.js @@ -34,6 +34,14 @@ describe('Board Store Mutations', () => { state = defaultState(); }); + describe('REQUEST_CURRENT_BOARD', () => { + it('Should set isBoardLoading state to true', () => { + mutations[types.REQUEST_CURRENT_BOARD](state); + + expect(state.isBoardLoading).toBe(true); + }); + }); + describe('RECEIVE_BOARD_SUCCESS', () => { it('Should set board to state', () => { mutations[types.RECEIVE_BOARD_SUCCESS](state, mockBoard); @@ -292,24 +300,6 @@ describe('Board Store Mutations', () => { }); }); - describe('RESET_ITEMS_FOR_LIST', () => { - it('should remove issues from boardItemsByListId state', () => { - const listId = 'gid://gitlab/List/1'; - const boardItemsByListId = { - [listId]: [mockIssue.id], - }; - - state = { - ...state, - boardItemsByListId, - }; - - mutations[types.RESET_ITEMS_FOR_LIST](state, listId); - - expect(state.boardItemsByListId[listId]).toEqual([]); - }); - }); - describe('REQUEST_ITEMS_FOR_LIST', () => { const listId = 'gid://gitlab/List/1'; const boardItemsByListId = { |