Skip to content

Commit

Permalink
fixup! [miniflare] Add support for rootPaths
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbbot committed Feb 7, 2024
1 parent 709fd43 commit adec570
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/miniflare/test/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1972,6 +1972,8 @@ test.serial(
}
}`,
});
res = await mf.dispatchFetch("http://localhost");
t.is(await res.text(), "value");

// Check only resolves root path once for single worker options (with relative
// root path)
Expand All @@ -1982,5 +1984,7 @@ test.serial(
script:
'addEventListener("fetch", (event) => event.respondWith(new Response(TEXT)));',
});
res = await mf.dispatchFetch("http://localhost");
t.is(await res.text(), "one text");
}
);

0 comments on commit adec570

Please sign in to comment.