test(cron): relax event assertions for context keys

This commit is contained in:
Peter Steinberger
2026-02-15 03:53:49 +00:00
parent f1a76e1a36
commit 9db2ebed00
6 changed files with 52 additions and 27 deletions

View File

@@ -84,7 +84,10 @@ describe("CronService delivery plan consistency", () => {
const result = await cron.run(job.id, "force");
expect(result).toEqual({ ok: true, ran: true });
expect(enqueueSystemEvent).toHaveBeenCalledWith("Cron: done", { agentId: undefined });
expect(enqueueSystemEvent).toHaveBeenCalledWith(
"Cron: done",
expect.objectContaining({ agentId: undefined }),
);
cron.stop();
await store.cleanup();