Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-01-20 12:07:18 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-01-20 12:07:18 +0300
commit11b9d80bd76531de59013e773957b46d014b82af (patch)
tree56bdd016df9b196a797b0c18d5cfc30960d5c385 /spec/frontend/diffs
parente49f1ae46a164511ba79a08fea137ced2c357d6b (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/diffs')
-rw-r--r--spec/frontend/diffs/store/actions_spec.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/frontend/diffs/store/actions_spec.js b/spec/frontend/diffs/store/actions_spec.js
index 9e0ffbf757f..d8e49c7f57f 100644
--- a/spec/frontend/diffs/store/actions_spec.js
+++ b/spec/frontend/diffs/store/actions_spec.js
@@ -16,6 +16,7 @@ import * as treeWorkerUtils from '~/diffs/utils/tree_worker_utils';
import { createAlert } from '~/flash';
import axios from '~/lib/utils/axios_utils';
import * as commonUtils from '~/lib/utils/common_utils';
+import { HTTP_STATUS_INTERNAL_SERVER_ERROR } from '~/lib/utils/http_status';
import { mergeUrlParams } from '~/lib/utils/url_utility';
import eventHub from '~/notes/event_hub';
import { diffMetadata } from '../mock_data/diff_metadata';
@@ -228,7 +229,7 @@ describe('DiffsStoreActions', () => {
});
it('should show no warning on any other status code', async () => {
- mock.onGet(endpointMetadata).reply(500);
+ mock.onGet(endpointMetadata).reply(HTTP_STATUS_INTERNAL_SERVER_ERROR);
await testAction(
diffActions.fetchDiffFilesMeta,
@@ -1105,7 +1106,7 @@ describe('DiffsStoreActions', () => {
describe('error', () => {
beforeEach(() => {
- mock.onGet(`${TEST_HOST}/context`).replyOnce(500);
+ mock.onGet(`${TEST_HOST}/context`).replyOnce(HTTP_STATUS_INTERNAL_SERVER_ERROR);
});
it('dispatches receiveFullDiffError', () => {