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-31 12:07:35 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-01-31 12:07:35 +0300
commitaa88b9053d72f3f9b69ae5365b77595dcae5c0c3 (patch)
treeaa697939b0ea8a5333d13e92d0bc961bfff6ada7 /spec/frontend/protected_branches
parente6c495fe40320eb01bf8c4fb132c9f22449ae9d2 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/protected_branches')
-rw-r--r--spec/frontend/protected_branches/protected_branch_edit_spec.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/frontend/protected_branches/protected_branch_edit_spec.js b/spec/frontend/protected_branches/protected_branch_edit_spec.js
index 8e1a09500c7..b4029d94980 100644
--- a/spec/frontend/protected_branches/protected_branch_edit_spec.js
+++ b/spec/frontend/protected_branches/protected_branch_edit_spec.js
@@ -4,7 +4,7 @@ import { setHTMLFixture, resetHTMLFixture } from 'helpers/fixtures';
import { TEST_HOST } from 'helpers/test_constants';
import { createAlert } from '~/flash';
import axios from '~/lib/utils/axios_utils';
-import { HTTP_STATUS_INTERNAL_SERVER_ERROR } from '~/lib/utils/http_status';
+import { HTTP_STATUS_INTERNAL_SERVER_ERROR, HTTP_STATUS_OK } from '~/lib/utils/http_status';
import ProtectedBranchEdit from '~/protected_branches/protected_branch_edit';
jest.mock('~/flash');
@@ -116,7 +116,9 @@ describe('ProtectedBranchEdit', () => {
describe('when clicked', () => {
beforeEach(async () => {
- mock.onPatch(TEST_URL, { protected_branch: { [patchParam]: true } }).replyOnce(200, {});
+ mock
+ .onPatch(TEST_URL, { protected_branch: { [patchParam]: true } })
+ .replyOnce(HTTP_STATUS_OK, {});
});
it('checks and disables button', async () => {