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

@@ -69,8 +69,8 @@ describe("Backspace deletes attached image", () => {
await type(stdin, "@", flush);
console.log('AFTER @', lastFrameStripped());
await type(stdin, "\r", flush);
console.log('FRAME1', lastFrameStripped());
expect(lastFrameStripped()).toContain("bar.png");
const frame1 = lastFrameStripped();
expect(frame1.match(/bar\.png/g)?.length ?? 0).toBe(1);
await type(stdin, "\x7f", flush);