Files
probably-rendering-one-more…/apps/waterfall-wiki/tests/health.test.ts
T
codex-bot ad398db781
waterfall-wiki CI and deployment / verify-and-deploy (push) Has been cancelled
studio CI and deployment / verify-and-deploy (push) Successful in 9m15s
Restore PROMPT branding, rename waterfall-wiki, and add system tag workflows
2026-10-27 00:35:59 +08:00

16 lines
512 B
TypeScript

import assert from "node:assert/strict";
import { test } from "node:test";
import { healthResponse } from "../src/lib/health";
test("health identifies the deployed release", () => {
assert.deepEqual(healthResponse("GET", "abc123"), {
statusCode: 200,
body: { status: "ok", service: "prompt", release: "abc123" },
});
});
test("HEAD is supported and mutations are rejected", () => {
assert.equal(healthResponse("HEAD").statusCode, 200);
assert.equal(healthResponse("POST").statusCode, 405);
});