Versions 48 to 318
Lines 52–58 at 318 (were 52–58 at 48)
5454
55−test("an edit published after the move, made against the old place, lands at the new one", () => {
5858 project.edit("bob", { file: "src/shapes.ts", old: "const pi = 3.14;", new: "const pi = 3.1416;" }, 1);
Lines 60–66 at 318 (were 60–66 at 48)
6161 const news = project.edit("bob", { file: "src/shapes.ts", old: "return 1;", new: "return 1; // other" }, 2);
63− 'ann published "Move area" (version 1), which moved lines your draft changes from src/shapes.ts to src/geometry.ts; your changes moved with them. Run abso sync to see them there.',
63+ 'ann pushed "Move area" (version 1), which moved lines your draft changes from src/shapes.ts to src/geometry.ts; your changes moved with them. Run abso pull to see them there.',
6666 project.edit("bob", { file: "src/shapes.ts", old: "return pi * r * r;", new: "return pi * r ** 2;" }, 3);
Lines 80–86 at 318 (were 80–86 at 48)
8080 assert.equal(files["src/figures.ts"], START["src/shapes.ts"].replace("return 1;", "return 2;"));
8282
83−test("publishing a move leaves the mover's own files exactly as they were", () => {
Lines 179–185 at 318 (were 179–185 at 48)
181181
182−test("a move split across two publishes is a delete and a fresh write: the moved lines are new", () => {
182+test("a move split across two pushes is a delete and a fresh write: the moved lines are new", () => {
Lines 189–201 at 318 (were 189–201 at 48)
189189 assert.equal(project.publishOf(lines[1]!.atom)?.version, 2, "written fresh in version 2, not carried from version 0");
191191
192−test("past the move limit only the longest blocks move: a rewrite of many single lines still publishes, and a block moved whole keeps someone's edit (abso issue 137)", () => {
192+test("past the move limit only the longest blocks move: a rewrite of many single lines still pushes, and a block moved whole keeps someone's edit (abso issue 137)", () => {
194194 const block = [" // block", ' "b1": "one",', ' "b2": "two",', ' "b3": "three",', " // end block"];
195− const before = ["{", ...block, ...keys, "}"].join("\n") + "\n";
196196 // The draft reverses the keys with a new line between each, so every one is its own one-line match.
198− const after = ["{", ...rewritten, ...block, "}"].join("\n") + "\n";
- MCP
- compare on this site's /mcp
- CLI
- abso diff 48 318 worker/project/test/moves.test.ts --json
- JSON
- /christopher/abso-core/compare/48..318?file=worker%2Fproject%2Ftest%2Fmoves.test.ts&format=json