diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-14 15:08:26 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-14 15:08:26 +0300 |
commit | 6bc327a3491069240bd73cc83e17b3078c4148b0 (patch) | |
tree | 82c3548afeb527590247d4c6b862a1023c10e304 /spec/frontend/lib | |
parent | e0e9501a69a2d34f51b72c5f8ede345de69de22f (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/lib')
-rw-r--r-- | spec/frontend/lib/utils/url_utility_spec.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/spec/frontend/lib/utils/url_utility_spec.js b/spec/frontend/lib/utils/url_utility_spec.js index 72556e6bbe2..0799bc87c8c 100644 --- a/spec/frontend/lib/utils/url_utility_spec.js +++ b/spec/frontend/lib/utils/url_utility_spec.js @@ -788,18 +788,6 @@ describe('URL utility', () => { }); }); - describe('stripFinalUrlSegment', () => { - it.each` - path | expected - ${'http://fake.domain/twitter/typeahead-js/-/tags/v0.11.0'} | ${'http://fake.domain/twitter/typeahead-js/-/tags/'} - ${'http://fake.domain/bar/cool/-/nested/content'} | ${'http://fake.domain/bar/cool/-/nested/'} - ${'http://fake.domain/bar/cool?q="search"'} | ${'http://fake.domain/bar/'} - ${'http://fake.domain/bar/cool#link-to-something'} | ${'http://fake.domain/bar/'} - `('stripFinalUrlSegment $path => $expected', ({ path, expected }) => { - expect(urlUtils.stripFinalUrlSegment(path)).toBe(expected); - }); - }); - describe('escapeFileUrl', () => { it('encodes URL excluding the slashes', () => { expect(urlUtils.escapeFileUrl('/foo-bar/file.md')).toBe('/foo-bar/file.md'); |