{"draft":null,"from":13,"to":14,"files":[{"path":"client/test/issues.test.ts","added":14,"removed":0,"diff":"--- a/client/test/issues.test.ts\n+++ b/client/test/issues.test.ts\n@@ -128,10 +128,24 @@\n \t\t\t[\"answer\", \"3\"],\n \t\t\t[\"issue\", \"1\", \"--comment\", \"a\", \"--drop\"],\n \t\t\t[\"issues\", \"extra\"],\n+\t\t\t[\"ask\", \"--withdraw\", \"x\"],\n+\t\t\t[\"ask\", \"--withdraw\", \"3\", \"alice\", \"q\"],\n+\t\t\t[\"ask\", \"--withdraw\", \"3\", \"--issue\", \"2\"],\n+\t\t\t[\"ask\", \"--withdraw\", \"3\", \"--task\"],\n+\t\t\t[\"ask\", \"alice\", \"q\", \"--note\", \"a note without --withdraw\"],\n \t\t]) {\n \t\t\tconst r = await avcs(erin, argv);\n \t\t\tassert.equal(r.exit, 1, `${argv.join(\" \")}: ${r.out}`);\n \t\t}\n \t\tassert.equal(seen.length, before);\n \t});\n+\n+\tit(\"withdraw is one POST to the asker's own withdraw/<ask> route\", async () => {\n+\t\tconst erin = await folder(\"erin\");\n+\t\tconst before = seen.length;\n+\t\tawait avcs(erin, [\"ask\", \"--withdraw\", \"#3\", \"--note\", \"overtaken by later decisions\"]);\n+\t\tconst posts = seen.slice(before).filter((s) => s.startsWith(\"POST\"));\n+\t\tassert.equal(posts.length, 1, posts.join(\"\\n\"));\n+\t\tassert.match(posts[0]!, /^POST \\/p\\/issues\\d+\\/a\\/erin\\/withdraw\\/3$/);\n+\t});\n });"}],"unmatched":[]}