diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-07 00:11:21 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-07 00:11:21 +0300 |
commit | 09fd08f7e5db4514ce82223ab9a28ed8f823fb17 (patch) | |
tree | 764e4805ad6874358f26426c1e66611e0b377a87 /spec/frontend/api | |
parent | 33998a0e768263828f497685ae030f585193317f (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/api')
-rw-r--r-- | spec/frontend/api/groups_api_spec.js | 4 | ||||
-rw-r--r-- | spec/frontend/api/projects_api_spec.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/frontend/api/groups_api_spec.js b/spec/frontend/api/groups_api_spec.js index abd627dab10..0315db02cf2 100644 --- a/spec/frontend/api/groups_api_spec.js +++ b/spec/frontend/api/groups_api_spec.js @@ -75,7 +75,7 @@ describe('GroupsApi', () => { const response = [{ id: 0, username: 'root' }]; - mock.onGet(expectedUrl).replyOnce(200, response); + mock.onGet(expectedUrl).replyOnce(HTTP_STATUS_OK, response); await expect(getGroupMembers(mockGroupId)).resolves.toMatchObject({ data: response, @@ -87,7 +87,7 @@ describe('GroupsApi', () => { const response = [{ id: 0, username: 'root' }]; - mock.onGet(expectedUrl).replyOnce(200, response); + mock.onGet(expectedUrl).replyOnce(HTTP_STATUS_OK, response); await expect(getGroupMembers(mockGroupId, true)).resolves.toMatchObject({ data: response, diff --git a/spec/frontend/api/projects_api_spec.js b/spec/frontend/api/projects_api_spec.js index a6ae8b14ea9..2d4ed39dad0 100644 --- a/spec/frontend/api/projects_api_spec.js +++ b/spec/frontend/api/projects_api_spec.js @@ -132,7 +132,7 @@ describe('~/api/projects_api.js', () => { const response = [{ id: 0, username: 'root' }]; - mock.onGet(expectedUrl).replyOnce(200, response); + mock.onGet(expectedUrl).replyOnce(HTTP_STATUS_OK, response); await expect(projectsApi.getProjectMembers(projectId)).resolves.toMatchObject({ data: response, @@ -144,7 +144,7 @@ describe('~/api/projects_api.js', () => { const response = [{ id: 0, username: 'root' }]; - mock.onGet(expectedUrl).replyOnce(200, response); + mock.onGet(expectedUrl).replyOnce(HTTP_STATUS_OK, response); await expect(projectsApi.getProjectMembers(projectId, true)).resolves.toMatchObject({ data: response, |