diff --git a/tests/specs/serve/declarativeSer/server.ts b/tests/specs/serve/declarativeSer/server.ts index 25d905d5d8..f2537670ab 100644 --- a/tests/specs/serve/declarativeSer/server.ts +++ b/tests/specs/serve/declarativeSer/server.ts @@ -1,3 +1,8 @@ -export const fetch = (req: Request) => { - return new Response("Hello from declarative server!"); -}; \ No newline at end of file +export default { + fetch(req: Request) { + return new Response("Hello from declarative server"); + }, + onListen(info) { + console.log(info); + } +} satisfies Deno.ServeDefaultExport;