diff options
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'); |