Skip to content

Commit 50d0f29

Browse files
committed
Fix type in test
1 parent 17b51e8 commit 50d0f29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/typescript-client/test/integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ describe(`HTTP Sync`, () => {
6464
}) => {
6565
const urlsRequested: URL[] = []
6666
const fetchWrapper = (...args: Parameters<typeof fetch>) => {
67-
const url = new URL(args[0])
67+
const url = new URL(args[0] instanceof Request ? args[0].url : args[0])
6868
urlsRequested.push(url)
6969
return fetch(...args)
7070
}

0 commit comments

Comments
 (0)