diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-05 09:12:41 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-05 09:12:41 +0300 |
commit | 7c0c3a7dc95668d20ec8f4bbc2d505f373b6032a (patch) | |
tree | 2034e645e8aada36db5d816d271d7f2d8728157d /spec/frontend/api | |
parent | d8abaef3c6859400b684427ba57aa247b6272cb1 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/api')
-rw-r--r-- | spec/frontend/api/projects_api_spec.js | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/spec/frontend/api/projects_api_spec.js b/spec/frontend/api/projects_api_spec.js index 7306e6eef17..4ceed885e6e 100644 --- a/spec/frontend/api/projects_api_spec.js +++ b/spec/frontend/api/projects_api_spec.js @@ -146,29 +146,4 @@ describe('~/api/projects_api.js', () => { }); }); }); - - describe('getProjectShareLocations', () => { - it('requests share locations for a project', async () => { - const expectedUrl = `/api/v7/projects/1/share_locations`; - const params = { search: 'foo' }; - - const response = [ - { - id: 27, - web_url: 'http://127.0.0.1:3000/groups/Commit451', - name: 'Commit451', - avatar_url: null, - full_name: 'Commit451', - full_path: 'Commit451', - }, - ]; - - mock.onGet(expectedUrl).replyOnce(HTTP_STATUS_OK, response); - - await expect(projectsApi.getProjectShareLocations(projectId, params)).resolves.toMatchObject({ - data: response, - }); - expect(mock.history.get[0].params).toEqual({ ...params, per_page: DEFAULT_PER_PAGE }); - }); - }); }); |