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-23 12:08:21 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-01-23 12:08:21 +0300
commit5b1258ee90fb29779d6c9da3f488ebff61e243a3 (patch)
treeff63f9b2f31759d2f20126219997c7230b5b822f /spec/frontend/dropzone_input_spec.js
parent9cc33a92d0d4e79d7ca4a1e7b4400fbbdda33933 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/dropzone_input_spec.js')
-rw-r--r--spec/frontend/dropzone_input_spec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/frontend/dropzone_input_spec.js b/spec/frontend/dropzone_input_spec.js
index 0f7926ccbf9..fdd157dd09f 100644
--- a/spec/frontend/dropzone_input_spec.js
+++ b/spec/frontend/dropzone_input_spec.js
@@ -7,7 +7,7 @@ import { TEST_HOST } from 'spec/test_constants';
import PasteMarkdownTable from '~/behaviors/markdown/paste_markdown_table';
import dropzoneInput from '~/dropzone_input';
import axios from '~/lib/utils/axios_utils';
-import { HTTP_STATUS_OK } from '~/lib/utils/http_status';
+import { HTTP_STATUS_BAD_REQUEST, HTTP_STATUS_OK } from '~/lib/utils/http_status';
const TEST_FILE = new File([], 'somefile.jpg');
TEST_FILE.upload = {};
@@ -161,7 +161,7 @@ describe('dropzone_input', () => {
${'text/plain'} | ${TEST_ERROR_MESSAGE}
`('when AJAX fails with json', ({ responseType, responseBody }) => {
mock.post(TEST_UPLOAD_PATH, {
- status: 400,
+ status: HTTP_STATUS_BAD_REQUEST,
body: responseBody,
headers: { 'Content-Type': responseType },
});