fix(server): update hire-route test to expect inheritedFromAgentId

The route now sets inheritedFromAgentId on the claudeLogin claim for
every hire. The prior test did not expect this field, so it failed
the exact-equality check for a board-user hire, where the value is
null.

Co-authored-by: Paperclip <noreply@paperclip.ing>
This commit is contained in:
nickyleach 2026-09-11 23:09:35 +00:00
parent 65e3780f3e
commit 34bb4c9218
1 changed files with 8 additions and 1 deletions

View File

@ -1283,7 +1283,14 @@ describe.sequential("agent permission routes", () => {
},
},
}),
{ claudeLogin: { storedSessionId: null, ownerUserId: "board-user", applyExistingWithoutClaim: false } },
{
claudeLogin: {
storedSessionId: null,
ownerUserId: "board-user",
applyExistingWithoutClaim: false,
inheritedFromAgentId: null,
},
},
);
});