fix: align cron prompt content with filtered reminder events

This commit is contained in:
Vignesh Natarajan
2026-02-12 16:01:53 -08:00
committed by Vignesh
parent 7a8a57b573
commit 54513f4240
4 changed files with 45 additions and 14 deletions

View File

@@ -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 });