test: fix progress draft truncation expectations

This commit is contained in:
Peter Steinberger
2026-05-11 14:18:13 +01:00
parent c214a5f262
commit 03d9bc14b5

View File

@@ -243,14 +243,14 @@ describe("channel-streaming", () => {
entry: { streaming: { progress: { label: false } } },
lines: line ? [line] : [],
}),
).toBe("🩹 1 modified; extensions/discord/src/monitor/message-handler.draft-prev");
).toBe("🩹 1 modified; extensions/discord/src/monitor/message-handler.draft-preview.ts");
});
it("bounds progress draft line length to reduce edit reflow", () => {
expect(
formatChannelProgressDraftText({
entry: { streaming: { progress: { label: "Shelling" } } },
lines: ["x".repeat(80)],
lines: ["x".repeat(160)],
formatLine: (line) => `\`${line}\``,
}),
).toBe(`Shelling\n• \`${"x".repeat(107)}\``);