import assert from "node:assert/strict"; import { describe, it } from "node:test"; describe("GET /api/agent/models", () => { it("is dynamic and returns no-store responses", async () => { process.env.DATABASE_URL ??= "postgres://famapp:famapp@localhost:5432/famapp"; const { GET, dynamic } = await import("../../src/app/api/agent/models/route"); assert.equal(dynamic, "force-dynamic"); const response = await GET(new Request("http://localhost/api/agent/models?refresh=1")); assert.equal(response.status, 401); assert.equal(response.headers.get("Cache-Control"), "no-store"); }); });