blob: 216e965e7732f0bca8ace5cf40de4231f6027e2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import { describe, expect, it } from "vitest";
import { app } from "./index";
describe("Hono app", () => {
describe("GET /api/health", () => {
it("returns ok status", async () => {
const res = await app.request("/api/health");
expect(res.status).toBe(200);
expect(await res.json()).toEqual({ status: "ok" });
});
});
});
|