mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 18:24:35 +00:00
test(cron): relax event assertions for context keys
This commit is contained in:
@@ -118,7 +118,10 @@ describe("Cron issue regressions", () => {
|
||||
const result = await cron.run(forceNow.id, "force");
|
||||
|
||||
expect(result).toEqual({ ok: true, ran: true });
|
||||
expect(enqueueSystemEvent).toHaveBeenCalledWith("force", { agentId: undefined });
|
||||
expect(enqueueSystemEvent).toHaveBeenCalledWith(
|
||||
"force",
|
||||
expect.objectContaining({ agentId: undefined }),
|
||||
);
|
||||
|
||||
const job = await cron.add({
|
||||
name: "isolated",
|
||||
|
||||
Reference in New Issue
Block a user