fix(server): merge competing PluginMiddleware handlers together (#1545)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user