test: align agent id normalization

This commit is contained in:
Peter Steinberger
2026-01-24 14:03:52 +00:00
parent 765626b492
commit 93737ee152
3 changed files with 3 additions and 3 deletions

View File

@@ -162,7 +162,7 @@ describe("cron cli", () => {
const updateCall = callGatewayFromCli.mock.calls.find((call) => call[0] === "cron.update");
const patch = updateCall?.[2] as { patch?: { agentId?: unknown } };
expect(patch?.patch?.agentId).toBe("Ops");
expect(patch?.patch?.agentId).toBe("ops");
callGatewayFromCli.mockClear();
await program.parseAsync(["cron", "edit", "job-2", "--clear-agent"], {