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/contributors
parent9cc33a92d0d4e79d7ca4a1e7b4400fbbdda33933 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/contributors')
-rw-r--r--spec/frontend/contributors/store/actions_spec.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/frontend/contributors/store/actions_spec.js b/spec/frontend/contributors/store/actions_spec.js
index 865f683a91a..a4a78fc12ee 100644
--- a/spec/frontend/contributors/store/actions_spec.js
+++ b/spec/frontend/contributors/store/actions_spec.js
@@ -4,6 +4,7 @@ import * as actions from '~/contributors/stores/actions';
import * as types from '~/contributors/stores/mutation_types';
import { createAlert } from '~/flash';
import axios from '~/lib/utils/axios_utils';
+import { HTTP_STATUS_BAD_REQUEST } from '~/lib/utils/http_status';
jest.mock('~/flash.js');
@@ -38,7 +39,7 @@ describe('Contributors store actions', () => {
});
it('should show flash on API error', async () => {
- mock.onGet().reply(400, 'Not Found');
+ mock.onGet().reply(HTTP_STATUS_BAD_REQUEST, 'Not Found');
await testAction(
actions.fetchChartData,