{"draft":null,"from":175,"to":318,"files":[{"path":"client/test/join-empty.test.ts","added":18,"removed":0,"diff":"--- /dev/null\n+++ b/client/test/join-empty.test.ts\n@@ -0,0 +1,18 @@\n+// Joining a project that has nothing in it yet: the join writes no files, so it says what comes next.\n+\n+import assert from \"node:assert/strict\";\n+import { test } from \"node:test\";\n+import { emptyHint } from \"../src/join-commands.ts\";\n+\n+test(\"an empty project: the next step is to put files here and push\", () => {\n+\tassert.deepEqual(emptyHint(0, 0, 0, false), [\n+\t\t'The project is empty. Put its files in this folder, then abso push -m \"why\" publishes them.',\n+\t]);\n+});\n+\n+test(\"no hint when there is anything to say instead\", () => {\n+\tassert.deepEqual(emptyHint(3, 0, 0, false), [], \"shared has versions, even with no files left\");\n+\tassert.deepEqual(emptyHint(0, 2, 0, false), [], \"files were written\");\n+\tassert.deepEqual(emptyHint(0, 0, 1, false), [], \"files already in the folder, named by the join's own line\");\n+\tassert.deepEqual(emptyHint(0, 0, 0, true), [], \"a reader can't push\");\n+});"}],"unmatched":[]}