{"draft":null,"from":88,"to":89,"files":[{"path":"client/test/issues.test.ts","added":15,"removed":0,"diff":"--- a/client/test/issues.test.ts\n+++ b/client/test/issues.test.ts\n@@ -97,6 +97,8 @@\n \t\t\treturn send(200, {\n \t\t\t\task: { id: Number(ack[2]), by: \"desk\", of: ack[1], answer: null, ack: { at: Date.now(), note: \"\" } },\n \t\t\t});\n+\t\t// Ask 404 stands for a server from before ask threads: neither route is there.\n+\t\tif (/\\/(ask|reply)\\/404$/.test(req.url ?? \"\")) return send(404, { error: \"no such issues route\" });\n \t\t// A reply answers with the ask; from the one asked, a question makes it wait on the asker.\n \t\tconst reply = /\\/a\\/([^/]+)\\/reply\\/(\\d+)$/.exec(req.url ?? \"\");\n \t\tif (req.method === \"POST\" && reply) {\n@@ -290,6 +292,19 @@\n \t\tassert.equal((await main([\"reply\", \"7\"], { cwd: fay, env: ENV(), write: () => {} })).exit, 1);\n \t});\n \n+\tit(\"names a server from before ask threads instead of a bare 404\", async () => {\n+\t\tconst fay = await folder(\"fay\");\n+\t\tfor (const argv of [\n+\t\t\t[\"reply\", \"404\", \"still there?\"],\n+\t\t\t[\"ask\", \"404\"],\n+\t\t]) {\n+\t\t\tconst r = await main(argv, { cwd: fay, env: ENV(), write: () => {} });\n+\t\t\tassert.equal(r.exit, 1, argv.join(\" \"));\n+\t\t\tassert.match(r.stderr, /doesn't have ask threads yet/, argv.join(\" \"));\n+\t\t\tassert.doesNotMatch(r.stderr, /no such issues route/, argv.join(\" \"));\n+\t\t}\n+\t});\n+\n \tit(\"ask <N> reads one ask with its whole thread, oldest first, and whose turn it is\", async () => {\n \t\tconst fay = await folder(\"fay\");\n \t\tconst before = seen.length;"}],"unmatched":[]}