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

@@ -85,7 +85,10 @@ describe("CronService restart catch-up", () => {
await cron.start();
expect(enqueueSystemEvent).toHaveBeenCalledWith("digest now", { agentId: undefined });
expect(enqueueSystemEvent).toHaveBeenCalledWith(
"digest now",
expect.objectContaining({ agentId: undefined }),
);
expect(requestHeartbeatNow).toHaveBeenCalled();
const jobs = await cron.list({ includeDisabled: true });