mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 22:44:31 +00:00
fix: align cron prompt content with filtered reminder events
This commit is contained in:
committed by
Vignesh
parent
7a8a57b573
commit
54513f4240
@@ -135,6 +135,9 @@ describe("Ghost reminder bug (issue #13317)", () => {
|
||||
const calledCtx = getReplySpy.mock.calls[0]?.[0];
|
||||
expect(calledCtx?.Provider).toBe("cron-event");
|
||||
expect(calledCtx?.Body).toContain("scheduled reminder has been triggered");
|
||||
expect(calledCtx?.Body).toContain("Reminder: Check Base Scout results");
|
||||
expect(calledCtx?.Body).not.toContain("HEARTBEAT_OK");
|
||||
expect(calledCtx?.Body).not.toContain("heartbeat poll");
|
||||
expect(sendTelegram).toHaveBeenCalled();
|
||||
} finally {
|
||||
await fs.rm(tmpDir, { recursive: true, force: true });
|
||||
@@ -170,6 +173,9 @@ describe("Ghost reminder bug (issue #13317)", () => {
|
||||
const calledCtx = getReplySpy.mock.calls[0]?.[0];
|
||||
expect(calledCtx?.Provider).toBe("cron-event");
|
||||
expect(calledCtx?.Body).toContain("scheduled reminder has been triggered");
|
||||
expect(calledCtx?.Body).toContain("Reminder: Check Base Scout results");
|
||||
expect(calledCtx?.Body).not.toContain("HEARTBEAT_OK");
|
||||
expect(calledCtx?.Body).not.toContain("heartbeat poll");
|
||||
expect(sendTelegram).toHaveBeenCalled();
|
||||
} finally {
|
||||
await fs.rm(tmpDir, { recursive: true, force: true });
|
||||
|
||||
Reference in New Issue
Block a user