From cf942d67c7f29f764cd4fd150d27c07e542e8c39 Mon Sep 17 00:00:00 2001 From: Dave Date: Sat, 26 Sep 2026 10:05:27 +0200 Subject: [PATCH] fix(test): assert unknown-column error actually lists the project's real columns Co-Authored-By: Claude Sonnet 5 --- tests/integration/agent-api.test.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/integration/agent-api.test.ts b/tests/integration/agent-api.test.ts index a88ad9d..3279834 100644 --- a/tests/integration/agent-api.test.ts +++ b/tests/integration/agent-api.test.ts @@ -202,6 +202,15 @@ describe("card detail, comments, subtasks, and move", () => { expect(response.status).toBe(400); const body = await response.json(); expect(body.error).toContain("Not A Real Column"); + + // The whole point of this error is that a caller can self-correct from it — + // assert it actually lists a real column name, not just echoes the bad input. + const columns = await admin.collection("columns").getFullList({ + filter: `project = "${projectId}"`, + }); + for (const column of columns) { + expect(body.error).toContain(column.name); + } }); it("PATCH move to a working column accepts the card and logs it", async () => {