mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-06 10:48:12 +02:00
test(server): expect transactional review transition
Align the watchdog in-review assertion with the atomic update contract. Co-Authored-By: Codex <noreply@openai.com>
This commit is contained in:
1 parent
277c13529a
commit
3526b82e2b
1 file changed
+5
-1
@@ -1948,7 +1948,11 @@ describe("agent issue mutation checkout ownership", () => {
|
||||
const res = await request(app).patch(`/api/issues/${issueId}`).send({ status: "in_review" });
|
||||
|
||||
expect(res.status, JSON.stringify(res.body)).toBe(200);
|
||||
expect(mockIssueService.update).toHaveBeenCalledWith(issueId, expect.objectContaining({ status: "in_review" }));
|
||||
expect(mockIssueService.update).toHaveBeenCalledWith(
|
||||
issueId,
|
||||
expect.objectContaining({ status: "in_review" }),
|
||||
expect.anything(),
|
||||
);
|
||||
});
|
||||
|
||||
it("rejects stale watchdog source mutations when revalidation finds a live path", async () => {
|
||||
|
||||
Reference in new issue
Block a user