diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-19 06:08:03 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-19 06:08:03 +0300 |
commit | 5b20366d04e3c672a37954f2fc374ca81296c4c1 (patch) | |
tree | a01ea0170d34df3866bbbcea8cd7cf9c5c6f452d /spec/frontend/boards/stores/actions_spec.js | |
parent | ca98ae2df53ad032fd7877f5f907fdca17e43158 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/boards/stores/actions_spec.js')
-rw-r--r-- | spec/frontend/boards/stores/actions_spec.js | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/spec/frontend/boards/stores/actions_spec.js b/spec/frontend/boards/stores/actions_spec.js index eacf9db191e..e1c9fa10dde 100644 --- a/spec/frontend/boards/stores/actions_spec.js +++ b/spec/frontend/boards/stores/actions_spec.js @@ -85,6 +85,9 @@ describe('fetchBoard', () => { payload, expectedMutations: [ { + type: types.REQUEST_CURRENT_BOARD, + }, + { type: types.RECEIVE_BOARD_SUCCESS, payload: mockBoard, }, @@ -101,6 +104,9 @@ describe('fetchBoard', () => { payload, expectedMutations: [ { + type: types.REQUEST_CURRENT_BOARD, + }, + { type: types.RECEIVE_BOARD_FAILURE, }, ], @@ -133,6 +139,20 @@ describe('setBoardConfig', () => { }); }); +describe('setBoard', () => { + it('dispatches setBoardConfig', () => { + return testAction({ + action: actions.setBoard, + payload: mockBoard, + expectedMutations: [{ type: types.RECEIVE_BOARD_SUCCESS, payload: mockBoard }], + expectedActions: [ + { type: 'setBoardConfig', payload: mockBoard }, + { type: 'performSearch', payload: { resetLists: true } }, + ], + }); + }); +}); + describe('setFilters', () => { it.each([ [ @@ -172,7 +192,11 @@ describe('performSearch', () => { {}, {}, [], - [{ type: 'setFilters', payload: {} }, { type: 'fetchLists' }, { type: 'resetIssues' }], + [ + { type: 'setFilters', payload: {} }, + { type: 'fetchLists', payload: { resetLists: false } }, + { type: 'resetIssues' }, + ], ); }); }); |