From 7ccba7562198214e52f7b701582525ee0135ef73 Mon Sep 17 00:00:00 2001 From: pomelo-nwu Date: Tue, 28 Oct 2025 09:15:07 +0800 Subject: [PATCH] test: update /chat list test to match plain text output Updated the test expectations to match the new plain text format without ANSI escape codes. --- packages/cli/src/ui/commands/chatCommand.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/ui/commands/chatCommand.test.ts b/packages/cli/src/ui/commands/chatCommand.test.ts index 90b4729d..7453976c 100644 --- a/packages/cli/src/ui/commands/chatCommand.test.ts +++ b/packages/cli/src/ui/commands/chatCommand.test.ts @@ -139,8 +139,8 @@ describe('chatCommand', () => { .match(/(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2}:\d{2})/); const formattedDate = isoDate ? `${isoDate[1]} ${isoDate[2]}` : ''; expect(content).toContain(formattedDate); - const index1 = content.indexOf('- \u001b[36mtest1\u001b[0m'); - const index2 = content.indexOf('- \u001b[36mtest2\u001b[0m'); + const index1 = content.indexOf('- test1'); + const index2 = content.indexOf('- test2'); expect(index1).toBeGreaterThanOrEqual(0); expect(index2).toBeGreaterThan(index1); });