test(cron): avoid delivery.mode type widening in isolated announce test

This commit is contained in:
Ayaan Zaidi
2026-02-23 10:50:02 +05:30
committed by Ayaan Zaidi
parent 118611465c
commit bf732b88e7

View File

@@ -206,10 +206,8 @@ describe("runCronIsolatedAgentTurn", () => {
});
const cfg = makeCfg(home, storePath);
const job = {
...makeJob({ kind: "agentTurn", message: "do it" }),
delivery: { mode: "announce", channel: "last" as const },
};
const job = makeJob({ kind: "agentTurn", message: "do it" });
job.delivery = { mode: "announce", channel: "last" };
await runCronIsolatedAgentTurn({
cfg,