Skip to content

Commit c870d73

Browse files
committed
fix
1 parent d68289e commit c870d73

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/firestore/test/integration/util/firebase_export.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,12 @@ class ReadableStreamSpy<Uint8Array> {
8787
}
8888

8989
globalThis.fetch = async function (requestOrUrl, options) {
90-
// @ts-ignore
9190
const url =
92-
typeof requestOrUrl === 'string' ? requestOrUrl : requestOrUrl.url;
91+
typeof requestOrUrl === 'string'
92+
? requestOrUrl
93+
: requestOrUrl instanceof URL
94+
? requestOrUrl.toString()
95+
: requestOrUrl.url;
9396

9497
logDebug(`FETCH FOR ${url}`);
9598

0 commit comments

Comments
 (0)