one image attached

This commit is contained in:
Eason Goodale
2025-04-19 19:00:50 -07:00
parent d7d2c3f1e7
commit 2bcc15a839
4 changed files with 42 additions and 22 deletions

View File

@@ -71,7 +71,8 @@ describe("Chat input attachment preview", () => {
await type(stdin, "@", flush);
await type(stdin, "\r", flush); // choose first
expect(lastFrameStripped()).toContain("foo.png");
const frame1 = lastFrameStripped();
expect(frame1.match(/foo\.png/g)?.length ?? 0).toBe(1);
await type(stdin, "\x15", flush); // Ctrl+U