Skip to content

Commit 15e108e

Browse files
committed
test: tighten rules-unit-testing patch, matches upstream PR attempt
works in testing, is minimal compared to previous See firebase/firebase-js-sdk#8861
1 parent ea8aeec commit 15e108e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
diff --git a/node_modules/@firebase/rules-unit-testing/dist/index.cjs.js b/node_modules/@firebase/rules-unit-testing/dist/index.cjs.js
2-
index dd6426f..15b64b9 100644
2+
index dd6426f..d053c39 100644
33
--- a/node_modules/@firebase/rules-unit-testing/dist/index.cjs.js
44
+++ b/node_modules/@firebase/rules-unit-testing/dist/index.cjs.js
5-
@@ -60,8 +60,7 @@ function makeUrl(hostAndPort, path) {
5+
@@ -60,9 +60,7 @@ function makeUrl(hostAndPort, path) {
66
hostAndPort = `${host}:${port}`;
77
}
88
}
99
- const url = new URL(`http://${hostAndPort}/`);
1010
- url.pathname = path;
11-
+ const url = new URL(`http://${hostAndPort}/${path}`);
12-
return url;
11+
- return url;
12+
+ return new URL(`http://${hostAndPort}/${path}`);
1313
}
1414

15+
/**

0 commit comments

Comments
 (0)