diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-20 12:07:18 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-20 12:07:18 +0300 |
commit | 11b9d80bd76531de59013e773957b46d014b82af (patch) | |
tree | 56bdd016df9b196a797b0c18d5cfc30960d5c385 /spec/frontend/jobs | |
parent | e49f1ae46a164511ba79a08fea137ced2c357d6b (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/jobs')
-rw-r--r-- | spec/frontend/jobs/store/actions_spec.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/frontend/jobs/store/actions_spec.js b/spec/frontend/jobs/store/actions_spec.js index 0d11c4d56bf..f00cf8f5232 100644 --- a/spec/frontend/jobs/store/actions_spec.js +++ b/spec/frontend/jobs/store/actions_spec.js @@ -30,6 +30,7 @@ import { import * as types from '~/jobs/store/mutation_types'; import state from '~/jobs/store/state'; import axios from '~/lib/utils/axios_utils'; +import { HTTP_STATUS_INTERNAL_SERVER_ERROR } from '~/lib/utils/http_status'; describe('Job State actions', () => { let mockedState; @@ -134,7 +135,7 @@ describe('Job State actions', () => { describe('error', () => { beforeEach(() => { - mock.onGet(`${TEST_HOST}/endpoint.json`).reply(500); + mock.onGet(`${TEST_HOST}/endpoint.json`).reply(HTTP_STATUS_INTERNAL_SERVER_ERROR); }); it('dispatches requestJob and receiveJobError', () => { @@ -288,7 +289,7 @@ describe('Job State actions', () => { describe('error', () => { beforeEach(() => { - mock.onGet(`${TEST_HOST}/endpoint/trace.json`).reply(500); + mock.onGet(`${TEST_HOST}/endpoint/trace.json`).reply(HTTP_STATUS_INTERNAL_SERVER_ERROR); }); it('dispatches requestJobLog and receiveJobLogError', () => { @@ -449,7 +450,7 @@ describe('Job State actions', () => { describe('error', () => { beforeEach(() => { - mock.onGet(`${TEST_HOST}/jobs.json`).reply(500); + mock.onGet(`${TEST_HOST}/jobs.json`).reply(HTTP_STATUS_INTERNAL_SERVER_ERROR); }); it('dispatches requestJobsForStage and receiveJobsForStageError', () => { |