Skip to main content
Module

x/denzo_logger/test/logger.test.ts

Simple logger plugin for Denzo
Latest
File
import { logger } from "../mod.ts";import { assertEquals, createInject, Denzo } from "./deps.ts";
const { test } = Deno;
test("registration without error", async () => { const app = new Denzo();
app.register(logger, { allowParentHooks: true }); app.route({ method: "GET", url: "/hi", handler() { return "Hello!"; }, });
app.finalize(); const inject = createInject(app); const response = await inject("/hi"); assertEquals(response.status, 200);});