Commit 95223fe1 authored by Tim Zallmann's avatar Tim Zallmann

Merge branch 'nfriend-add-test-for-api-url-prefixing' into 'master'

Add test for API URL slash prefixing behavior

See merge request gitlab-org/gitlab!51713
parents 502d864e f2a4a252
......@@ -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';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment