mirror of
https://github.com/hanzoai/bot-railway-template.git
synced 2026-10-30 18:46:40 +00:00
12 lines
469 B
JavaScript
12 lines
469 B
JavaScript
import test from "node:test";
|
|
import assert from "node:assert/strict";
|
|
|
|
// Minimal regression guard: ensure the server source contains the public /healthz endpoint.
|
|
// (This repo doesn't have an easy way to import the express app without starting a server.)
|
|
import fs from "node:fs";
|
|
|
|
test("server exposes /healthz endpoint", () => {
|
|
const src = fs.readFileSync(new URL("../src/server.js", import.meta.url), "utf8");
|
|
assert.match(src, /app\.get\("\/healthz"/);
|
|
});
|