diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-23 12:08:21 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-23 12:08:21 +0300 |
commit | 5b1258ee90fb29779d6c9da3f488ebff61e243a3 (patch) | |
tree | ff63f9b2f31759d2f20126219997c7230b5b822f /spec/frontend/contributors | |
parent | 9cc33a92d0d4e79d7ca4a1e7b4400fbbdda33933 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/contributors')
-rw-r--r-- | spec/frontend/contributors/store/actions_spec.js | 3 |
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, |