summaryrefslogtreecommitdiff
path: root/spec/frontend/error_tracking/store/list/actions_spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/error_tracking/store/list/actions_spec.js')
-rw-r--r--spec/frontend/error_tracking/store/list/actions_spec.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/frontend/error_tracking/store/list/actions_spec.js b/spec/frontend/error_tracking/store/list/actions_spec.js
index 2809bbe834e..590983bd93d 100644
--- a/spec/frontend/error_tracking/store/list/actions_spec.js
+++ b/spec/frontend/error_tracking/store/list/actions_spec.js
@@ -4,7 +4,7 @@ import * as actions from '~/error_tracking/store/list/actions';
import * as types from '~/error_tracking/store/list/mutation_types';
import { createAlert } from '~/flash';
import axios from '~/lib/utils/axios_utils';
-import httpStatusCodes from '~/lib/utils/http_status';
+import { HTTP_STATUS_BAD_REQUEST, HTTP_STATUS_OK } from '~/lib/utils/http_status';
jest.mock('~/flash.js');
@@ -23,7 +23,7 @@ describe('error tracking actions', () => {
it('should start polling for data', () => {
const payload = { errors: [{ id: 1 }, { id: 2 }] };
- mock.onGet().reply(httpStatusCodes.OK, payload);
+ mock.onGet().reply(HTTP_STATUS_OK, payload);
return testAction(
actions.startPolling,
{},
@@ -39,7 +39,7 @@ describe('error tracking actions', () => {
});
it('should show flash on API error', async () => {
- mock.onGet().reply(httpStatusCodes.BAD_REQUEST);
+ mock.onGet().reply(HTTP_STATUS_BAD_REQUEST);
await testAction(
actions.startPolling,