diff options
Diffstat (limited to 'spec/frontend/issues/related_merge_requests/store/actions_spec.js')
-rw-r--r-- | spec/frontend/issues/related_merge_requests/store/actions_spec.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/frontend/issues/related_merge_requests/store/actions_spec.js b/spec/frontend/issues/related_merge_requests/store/actions_spec.js index ecadcb1a13f..7339372a8d1 100644 --- a/spec/frontend/issues/related_merge_requests/store/actions_spec.js +++ b/spec/frontend/issues/related_merge_requests/store/actions_spec.js @@ -2,7 +2,7 @@ import MockAdapter from 'axios-mock-adapter'; import testAction from 'helpers/vuex_action_helper'; import { createAlert } from '~/flash'; import axios from '~/lib/utils/axios_utils'; -import { HTTP_STATUS_BAD_REQUEST } from '~/lib/utils/http_status'; +import { HTTP_STATUS_BAD_REQUEST, HTTP_STATUS_OK } from '~/lib/utils/http_status'; import * as actions from '~/issues/related_merge_requests/store/actions'; import * as types from '~/issues/related_merge_requests/store/mutation_types'; @@ -73,7 +73,9 @@ describe('RelatedMergeRequest store actions', () => { describe('for a successful request', () => { it('should dispatch success action', () => { const data = { a: 1 }; - mock.onGet(`${state.apiEndpoint}?per_page=100`).replyOnce(200, data, { 'x-total': 2 }); + mock + .onGet(`${state.apiEndpoint}?per_page=100`) + .replyOnce(HTTP_STATUS_OK, data, { 'x-total': 2 }); return testAction( actions.fetchMergeRequests, |