Skip to content
Snippets Groups Projects
Unverified Commit 89c96918 authored by Sergei Zharinov's avatar Sergei Zharinov Committed by GitHub
Browse files

fix: Url utils coverage (#22994)

parent ef6f0c7f
No related merge requests found
...@@ -90,6 +90,7 @@ describe('util/url', () => { ...@@ -90,6 +90,7 @@ describe('util/url', () => {
${'http://foo.io'} | ${'aaa/?bbb=z'} | ${'http://foo.io/aaa?bbb=z'} ${'http://foo.io'} | ${'aaa/?bbb=z'} | ${'http://foo.io/aaa?bbb=z'}
`('replaceUrlPath("$baseUrl", "$x") => $result', ({ baseUrl, x, result }) => { `('replaceUrlPath("$baseUrl", "$x") => $result', ({ baseUrl, x, result }) => {
expect(replaceUrlPath(baseUrl, x)).toBe(result); expect(replaceUrlPath(baseUrl, x)).toBe(result);
expect(replaceUrlPath(new URL(baseUrl), x)).toBe(result);
}); });
it('getQueryString', () => { it('getQueryString', () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment