diff --git a/tests/patches/@firebase+rules-unit-testing+4.0.1.patch b/tests/patches/@firebase+rules-unit-testing+4.0.1.patch index ae3c79c8a8..ae7ed915f9 100644 --- a/tests/patches/@firebase+rules-unit-testing+4.0.1.patch +++ b/tests/patches/@firebase+rules-unit-testing+4.0.1.patch @@ -1,14 +1,15 @@ diff --git a/node_modules/@firebase/rules-unit-testing/dist/index.cjs.js b/node_modules/@firebase/rules-unit-testing/dist/index.cjs.js -index dd6426f..15b64b9 100644 +index dd6426f..d053c39 100644 --- a/node_modules/@firebase/rules-unit-testing/dist/index.cjs.js +++ b/node_modules/@firebase/rules-unit-testing/dist/index.cjs.js -@@ -60,8 +60,7 @@ function makeUrl(hostAndPort, path) { +@@ -60,9 +60,7 @@ function makeUrl(hostAndPort, path) { hostAndPort = `${host}:${port}`; } } - const url = new URL(`http://${hostAndPort}/`); - url.pathname = path; -+ const url = new URL(`http://${hostAndPort}/${path}`); - return url; +- return url; ++ return new URL(`http://${hostAndPort}/${path}`); } + /**