{"file":"client/test/join-empty.test.ts","version":318,"total":18,"from":1,"to":18,"lines":[{"n":1,"text":"// Joining a project that has nothing in it yet: the join writes no files, so it says what comes next.","atom":"a2412","author":"onboard","version":224},{"n":2,"text":"","atom":"a2412","author":"onboard","version":224},{"n":3,"text":"import assert from \"node:assert/strict\";","atom":"a2412","author":"onboard","version":224},{"n":4,"text":"import { test } from \"node:test\";","atom":"a2412","author":"onboard","version":224},{"n":5,"text":"import { emptyHint } from \"../src/join-commands.ts\";","atom":"a2412","author":"onboard","version":224},{"n":6,"text":"","atom":"a2412","author":"onboard","version":224},{"n":7,"text":"test(\"an empty project: the next step is to put files here and push\", () => {","atom":"a2412","author":"onboard","version":224},{"n":8,"text":"\tassert.deepEqual(emptyHint(0, 0, 0, false), [","atom":"a2412","author":"onboard","version":224},{"n":9,"text":"\t\t'The project is empty. Put its files in this folder, then abso push -m \"why\" publishes them.',","atom":"a2412","author":"onboard","version":224},{"n":10,"text":"\t]);","atom":"a2412","author":"onboard","version":224},{"n":11,"text":"});","atom":"a2412","author":"onboard","version":224},{"n":12,"text":"","atom":"a2412","author":"onboard","version":224},{"n":13,"text":"test(\"no hint when there is anything to say instead\", () => {","atom":"a2412","author":"onboard","version":224},{"n":14,"text":"\tassert.deepEqual(emptyHint(3, 0, 0, false), [], \"shared has versions, even with no files left\");","atom":"a2412","author":"onboard","version":224},{"n":15,"text":"\tassert.deepEqual(emptyHint(0, 2, 0, false), [], \"files were written\");","atom":"a2412","author":"onboard","version":224},{"n":16,"text":"\tassert.deepEqual(emptyHint(0, 0, 1, false), [], \"files already in the folder, named by the join's own line\");","atom":"a2412","author":"onboard","version":224},{"n":17,"text":"\tassert.deepEqual(emptyHint(0, 0, 0, true), [], \"a reader can't push\");","atom":"a2412","author":"onboard","version":224},{"n":18,"text":"});","atom":"a2412","author":"onboard","version":224}],"atoms":[{"atom":"a2412","author":"onboard","message":"","time":1792052324701,"timeIso":"2026-10-15T08:18:44.701Z","publish":{"draft":null,"version":224,"agent":"onboard","message":"join: on a project with nothing in it yet, say what comes next. The join wrote no files and stopped there; now it adds: The project is empty. Put its files in this folder, then abso push -m \"why\" publishes them. Not for a reader, or when the folder already had files. Tests: client/test/join-empty.test.ts (2).","time":1792052404524,"timeIso":"2026-10-15T08:20:04.524Z"}}]}