fix(server): middleware order incorrect (#1280)
This commit is contained in:
@@ -593,6 +593,21 @@ Deno.test({
|
||||
},
|
||||
});
|
||||
|
||||
Deno.test({
|
||||
name: "middleware nesting order",
|
||||
fn: async () => {
|
||||
const resp = await handler(
|
||||
new Request(
|
||||
"https://fresh.deno.dev/layeredMdw/nesting/acme/production/abc",
|
||||
),
|
||||
);
|
||||
assert(resp);
|
||||
assertEquals(resp.status, Status.OK);
|
||||
const body = await resp.text();
|
||||
assertStringIncludes(body, "<div>1234</div>");
|
||||
},
|
||||
});
|
||||
|
||||
Deno.test({
|
||||
name: "/not_found",
|
||||
fn: async () => {
|
||||
|
||||
Reference in New Issue
Block a user