summaryrefslogtreecommitdiff
path: root/spec/frontend/self_monitor/store/actions_spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/self_monitor/store/actions_spec.js')
-rw-r--r--spec/frontend/self_monitor/store/actions_spec.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/spec/frontend/self_monitor/store/actions_spec.js b/spec/frontend/self_monitor/store/actions_spec.js
index 4c266fabea6..0e28e330009 100644
--- a/spec/frontend/self_monitor/store/actions_spec.js
+++ b/spec/frontend/self_monitor/store/actions_spec.js
@@ -1,7 +1,11 @@
import axios from 'axios';
import MockAdapter from 'axios-mock-adapter';
import testAction from 'helpers/vuex_action_helper';
-import { HTTP_STATUS_ACCEPTED, HTTP_STATUS_OK } from '~/lib/utils/http_status';
+import {
+ HTTP_STATUS_ACCEPTED,
+ HTTP_STATUS_INTERNAL_SERVER_ERROR,
+ HTTP_STATUS_OK,
+} from '~/lib/utils/http_status';
import * as actions from '~/self_monitor/store/actions';
import * as types from '~/self_monitor/store/mutation_types';
import createState from '~/self_monitor/store/state';
@@ -91,7 +95,7 @@ describe('self-monitor actions', () => {
describe('error', () => {
beforeEach(() => {
state.createProjectEndpoint = '/create';
- mock.onPost(state.createProjectEndpoint).reply(500);
+ mock.onPost(state.createProjectEndpoint).reply(HTTP_STATUS_INTERNAL_SERVER_ERROR);
});
it('dispatches error', () => {
@@ -198,7 +202,7 @@ describe('self-monitor actions', () => {
describe('error', () => {
beforeEach(() => {
state.deleteProjectEndpoint = '/delete';
- mock.onDelete(state.deleteProjectEndpoint).reply(500);
+ mock.onDelete(state.deleteProjectEndpoint).reply(HTTP_STATUS_INTERNAL_SERVER_ERROR);
});
it('dispatches error', () => {