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:
parent
277c13529a
commit
3526b82e2b
|
|
@ -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 () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue