Q107: a task approval covers the content it was given; edits need a fresh one

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-08 17:34:40 -04:00
1 parent c695fdb0f6
commit 4765683b86
12 files changed
+114 -52

No files matched your search

+1 -1
View File
@@ -67,7 +67,7 @@ describe("task review", () => {
test("a failed review hand-off leaves the task where it was; deleting reviewed work closes its review", () => {
const h = setup();
const taskId = h.task(h.devId, "Login page");
const failing = new TaskMutations(h.connection.db, () => { throw new Error("review task could not be created"); });
const failing = new TaskMutations(h.connection.db, () => { throw new Error("review task could not be created"); }, () => undefined);
expect(() => failing.updateStatus(h.orgId, taskId, TASK_STATUS.REVIEW)).toThrow("review task could not be created");
expect(h.connection.db.prepare("select status from tasks where id = ?").get(taskId)).toEqual({ status: "in_progress" });