Initial curated CertScope source from fe2bbe3ca5c98bf64be26a09c6c58ee805a7f87e
This commit is contained in:
commit
7348faf6c0
65 files changed
+12509
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { GET } from "./route";
|
||||
import { CERTSCOPE_VERSION } from "@/lib/version";
|
||||
|
||||
describe("GET /api/health", () => {
|
||||
it("returns a cache-free versioned liveness response", async () => {
|
||||
const response = GET();
|
||||
expect(response.status).toBe(200);
|
||||
expect(response.headers.get("cache-control")).toBe("no-store");
|
||||
expect(await response.json()).toMatchObject({ status: "ok", version: CERTSCOPE_VERSION });
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user