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-02-03 00:07:46 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-02-03 00:07:46 +0300
commit9579eee8954e0405c2dadb19c2a73c9597ce37ea (patch)
treed90223b7e449d8d25eef60ad16084ce0d2ca2b1b /spec/frontend/pages
parent0a9b6b99a9bdcacea434501320f1a8d131a33827 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/pages')
-rw-r--r--spec/frontend/pages/import/history/components/import_error_details_spec.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/frontend/pages/import/history/components/import_error_details_spec.js b/spec/frontend/pages/import/history/components/import_error_details_spec.js
index 82a3e11186e..628ee8d7999 100644
--- a/spec/frontend/pages/import/history/components/import_error_details_spec.js
+++ b/spec/frontend/pages/import/history/components/import_error_details_spec.js
@@ -2,6 +2,7 @@ import { GlLoadingIcon } from '@gitlab/ui';
import { mount, shallowMount } from '@vue/test-utils';
import MockAdapter from 'axios-mock-adapter';
import axios from '~/lib/utils/axios_utils';
+import { HTTP_STATUS_OK } from '~/lib/utils/http_status';
import ImportErrorDetails from '~/pages/import/history/components/import_error_details.vue';
describe('ImportErrorDetails', () => {
@@ -46,7 +47,7 @@ describe('ImportErrorDetails', () => {
it('renders import_error if it is available', async () => {
const FAKE_IMPORT_ERROR = 'IMPORT ERROR';
- mock.onGet(API_URL).reply(200, { import_error: FAKE_IMPORT_ERROR });
+ mock.onGet(API_URL).reply(HTTP_STATUS_OK, { import_error: FAKE_IMPORT_ERROR });
createComponent();
await axios.waitForAll();
@@ -55,7 +56,7 @@ describe('ImportErrorDetails', () => {
});
it('renders default text if error is not available', async () => {
- mock.onGet(API_URL).reply(200, { import_error: null });
+ mock.onGet(API_URL).reply(HTTP_STATUS_OK, { import_error: null });
createComponent();
await axios.waitForAll();