Skip to content

Commit

Permalink
undo changes to check if the test fails
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundhung committed Jan 6, 2025
1 parent 3060897 commit bd3494f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vitest-pool-workers/src/worker/fetch-mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,11 @@ globalThis.fetch = async (input, init) => {
const bodyText = bodyArray === null ? "" : DECODER.decode(bodyArray);
const dispatchOptions: Dispatcher.DispatchOptions = {
origin: url.origin,
path: url.pathname + url.search,
path: url.pathname,
method: request.method as Dispatcher.HttpMethod,
body: bodyText,
headers: requestHeaders,
query: Object.fromEntries(url.searchParams),
};
requests.set(dispatchOptions, { request, body: bodyArray });

Expand Down

0 comments on commit bd3494f

Please sign in to comment.