diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-20 00:10:45 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-20 00:10:45 +0300 |
commit | f265a70317c69af9d955d9a4c303b0bbcb8261ee (patch) | |
tree | fc8d8bd0d82dd713faa94fcab40235667f9267c4 /spec/frontend/api | |
parent | 83e4339a328c1a8c8e232d06f7d5e49c6e699fba (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/api')
-rw-r--r-- | spec/frontend/api/api_utils_spec.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/frontend/api/api_utils_spec.js b/spec/frontend/api/api_utils_spec.js index 3fec26f0149..04be442ef71 100644 --- a/spec/frontend/api/api_utils_spec.js +++ b/spec/frontend/api/api_utils_spec.js @@ -20,6 +20,10 @@ describe('~/api/api_utils.js', () => { ); }); + it('ensures the URL is prefixed with a /', () => { + expect(apiUtils.buildApiUrl('api/:version/projects/:id')).toEqual('/api/v7/projects/:id'); + }); + describe('when gon includes a relative_url_root property', () => { beforeEach(() => { window.gon.relative_url_root = '/relative/root'; |