diff options
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, ); |