diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-20 23:50:22 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-20 23:50:22 +0000 |
commit | 9dc93a4519d9d5d7be48ff274127136236a3adb3 (patch) | |
tree | 70467ae3692a0e35e5ea56bcb803eb512a10bedb /spec/frontend/reports/grouped_test_report/store/actions_spec.js | |
parent | 4b0f34b6d759d6299322b3a54453e930c6121ff0 (diff) | |
download | gitlab-ce-13.11.0-rc43.tar.gz |
Add latest changes from gitlab-org/gitlab@13-11-stable-eev13.11.0-rc43
Diffstat (limited to 'spec/frontend/reports/grouped_test_report/store/actions_spec.js')
-rw-r--r-- | spec/frontend/reports/grouped_test_report/store/actions_spec.js | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/spec/frontend/reports/grouped_test_report/store/actions_spec.js b/spec/frontend/reports/grouped_test_report/store/actions_spec.js index 28633f7ba16..bbc3a5dbba5 100644 --- a/spec/frontend/reports/grouped_test_report/store/actions_spec.js +++ b/spec/frontend/reports/grouped_test_report/store/actions_spec.js @@ -3,7 +3,7 @@ import { TEST_HOST } from 'helpers/test_constants'; import testAction from 'helpers/vuex_action_helper'; import axios from '~/lib/utils/axios_utils'; import { - setEndpoint, + setPaths, requestReports, fetchReports, stopPolling, @@ -23,13 +23,18 @@ describe('Reports Store Actions', () => { mockedState = state(); }); - describe('setEndpoint', () => { - it('should commit SET_ENDPOINT mutation', (done) => { + describe('setPaths', () => { + it('should commit SET_PATHS mutation', (done) => { testAction( - setEndpoint, - 'endpoint.json', + setPaths, + { endpoint: 'endpoint.json', headBlobPath: '/blob/path' }, mockedState, - [{ type: types.SET_ENDPOINT, payload: 'endpoint.json' }], + [ + { + type: types.SET_PATHS, + payload: { endpoint: 'endpoint.json', headBlobPath: '/blob/path' }, + }, + ], [], done, ); |