From 96d90091c4a78626347ea3f8cb99b630252bd3ce Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 26 Apr 2026 04:30:09 +0100 Subject: [PATCH] test: align task title sanitization expectation --- src/auto-reply/reply/commands-tasks.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/auto-reply/reply/commands-tasks.test.ts b/src/auto-reply/reply/commands-tasks.test.ts index aecbd680ac2..c1bd5d27c36 100644 --- a/src/auto-reply/reply/commands-tasks.test.ts +++ b/src/auto-reply/reply/commands-tasks.test.ts @@ -135,7 +135,9 @@ describe("buildTasksReply", () => { const reply = await buildTasksReplyForTest(); - expect(reply.text).toContain("[Mon 2026-04-06 02:42 GMT+1]"); + expect(reply.text).toContain("Background task"); + expect(reply.text).toContain("Finished."); + expect(reply.text).not.toContain("[Mon 2026-04-06 02:42 GMT+1]"); expect(reply.text).not.toContain("BEGIN_OPENCLAW_INTERNAL_CONTEXT"); expect(reply.text).not.toContain("OpenClaw runtime context (internal):"); });