diff --git a/lib/util/url.spec.ts b/lib/util/url.spec.ts
index c8ec5d95231855cedc95d2b12a81df342aedaf88..6396f37e8bb4164beaf7d9564de0d5567fe030ed 100644
--- a/lib/util/url.spec.ts
+++ b/lib/util/url.spec.ts
@@ -90,6 +90,7 @@ describe('util/url', () => {
     ${'http://foo.io'}      | ${'aaa/?bbb=z'}         | ${'http://foo.io/aaa?bbb=z'}
   `('replaceUrlPath("$baseUrl", "$x") => $result', ({ baseUrl, x, result }) => {
     expect(replaceUrlPath(baseUrl, x)).toBe(result);
+    expect(replaceUrlPath(new URL(baseUrl), x)).toBe(result);
   });
 
   it('getQueryString', () => {