mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-21 21:56:46 +00:00
test: fix progress draft truncation expectations
This commit is contained in:
@@ -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)}…\``);
|
||||
|
||||
Reference in New Issue
Block a user