{"draft":null,"from":46,"to":47,"files":[{"path":"client/test/attach.test.ts","added":12,"removed":0,"diff":"--- a/client/test/attach.test.ts\n+++ b/client/test/attach.test.ts\n@@ -318,6 +318,17 @@\n \t\t\t/attached a0123456789ab: \"shot.png\", 2 KB, https:\\/\\/issues.example\\/p\\/x\\/attachments\\/a0123456789ab/,\n \t\t);\n \t\tassert.match(text, /\\n {4}attached a00000000000f: \"mine.png\", 3.0 MB/);\n+\t\t// The way in comes before the first link, since an agent's fetch of a link is refused.\n+\t\tassert.match(\n+\t\t\ttext,\n+\t\t\t/^Issue [^\\n]*\\n[^\\n]*\\n3 files are attached below\\. To read them: abso issue \\d+ --save-attachments <folder> saves every one there, then open the files\\. The links are for people signed in on the website\\.\\n/,\n+\t\t);\n+\t\tassert.doesNotMatch(\n+\t\t\tissuePage({ ...page, issue: { ...page.issue, attachments: [] }, comments: [] } as unknown as IssuePage).join(\n+\t\t\t\t\"\\n\",\n+\t\t\t),\n+\t\t\t/--save-attachments/,\n+\t\t);\n \t\t// An SVG is listed as its PNG, with its own file as a download beside it.\n \t\tassert.match(\n \t\t\ttext,\n@@ -348,6 +359,7 @@\n \t\t\t],\n \t\t} as unknown as IssuePage;\n \t\tconst asks = issuePage(asked, { attachmentUrl: (id: string) => `https://i.example/${id}` }).join(\"\\n\");\n+\t\tassert.match(asks, /\\n5 files are attached below\\./, \"an ask's question and answer files count too\");\n \t\tassert.match(\n \t\t\tasks,\n \t\t\t/ask 4: .*\"Which\\?\"\\n {4}attached a00000000000d: \"a.png\", 1 KB, https:\\/\\/i.example\\/a00000000000d\\n {4}answer: \"This\"\\n {6}attached a00000000000e: \"b.png\", 1 KB/,"}],"unmatched":[]}