test(api): add normalizeAgentResumePatchOperations to ./resume mock

service.ts calls it (added in 82d961241, merged from origin/main) but the
mock omitted it, breaking the patch-apply test. Identity mock matches the
test's pass-through expectation.

Claude-Session: https://claude.ai/code/session_012Bnvt1MghwHj4qQRxuQUGa
This commit is contained in:
Amruth Pillai
2026-07-04 22:04:28 +02:00
parent 7f458dc58d
commit 560956bbe6
@@ -113,6 +113,7 @@ vi.mock("../storage/service", () => ({
vi.mock("./resume", () => ({
buildAgentDraftResumeName: vi.fn(),
buildUniqueAgentDraftSlug: vi.fn(),
normalizeAgentResumePatchOperations: vi.fn((_data, operations) => operations),
}));
vi.mock("./runs", () => ({
claimActiveAgentRun: claimActiveAgentRunMock,