fix(server): merge competing PluginMiddleware handlers together (#1545)

This commit is contained in:
Reed von Redwitz
2023-07-31 13:56:38 +00:00
committed by GitHub
parent 80fece0d3c
commit 21c72abecc
9 changed files with 149 additions and 24 deletions
+13
View File
@@ -68,6 +68,19 @@ Deno.test("plugin routes and middleware", async () => {
);
});
Deno.test("plugin middleware multiple handlers", async () => {
const resp = await router(
new Request("https://fresh.deno.dev/lots-of-middleware"),
);
assert(resp);
assertEquals(resp.status, Status.OK);
const body = await resp.text();
assertStringIncludes(
body,
`<h1>3</h1>`,
);
});
Deno.test({
name: "/with-island hydration",
async fn(t) {