From 8e78c1ca853a24d245d9f9b36ddcb3b315c0308f Mon Sep 17 00:00:00 2001 From: ework-daemon Date: Sat, 12 Sep 2026 14:58:05 +0800 Subject: [PATCH] test(export-cmd): assert new compress panel block-span format (issue #385) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #377 changed the compress result panel from '… (~N reclaimed, 1 block)' to '… blocks: b1=mXXXXX–mYYYYY' (blockSpanLabel) and updated four test files but missed tests/export-cmd.test.ts, whose setupSession helper still asserted /1 block/. The branch was based on pre-#377 master so its CI never ran this file; after both merges master went red (7 fails). Match the sibling convention (decompress-cmd.test.ts / integration.test.ts): /blocks: b\d+=/. The helper compresses only m00002 so the span detail does not affect the match. --- tests/export-cmd.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/export-cmd.test.ts b/tests/export-cmd.test.ts index 7f49f7fe..8eed4935 100644 --- a/tests/export-cmd.test.ts +++ b/tests/export-cmd.test.ts @@ -86,7 +86,7 @@ async function setupSession(stateFile: string) { ctx, ); const text = (res.content[0] as any).text as string; - assert.match(text, /1 block/, "compress created a block"); + assert.match(text, /blocks: b\d+=/, "compress created a block"); return { api, ctx, notifies }; }