fix(server): expect inheritedFromAgentId in hire-route claudeLogin call

The hire route now passes inheritedFromAgentId in the claudeLogin
options object. Add the field to the exact-match test expectation so
the test does not fail on a user-initiated hire.

Co-authored-by: Paperclip <noreply@paperclip.ing>
This commit is contained in:
nickyleach 2026-09-11 23:37:46 +00:00
parent ed49c92852
commit d24903de77
1 changed files with 8 additions and 1 deletions

View File

@ -1397,7 +1397,14 @@ describe.sequential("agent skill routes", () => {
}),
}),
}),
{ claudeLogin: { storedSessionId: null, ownerUserId: "local-board", applyExistingWithoutClaim: false } },
{
claudeLogin: {
storedSessionId: null,
ownerUserId: "local-board",
applyExistingWithoutClaim: false,
inheritedFromAgentId: null,
},
},
);
expect(mockApprovalService.create).toHaveBeenCalledWith(
"company-1",