{"draft":null,"from":2,"to":318,"files":[{"path":"src/engine/test/build.test.ts","added":13,"removed":7,"diff":"--- a/src/engine/test/build.test.ts\n+++ b/src/engine/test/build.test.ts\n@@ -127,7 +127,7 @@\n \t\tconst atom = repo.edit({ edits: [{ file: \"f.txt\", old: \"five\\n\", new: \"five\\nsix\\n\" }] });\n \t\tassert.deepEqual(atom.writes, [gapKey(\"a0.4\")]);\n \t\tassert.deepEqual(atom.reads, [lineKey(\"a0.4\")]);\n-\t\tassert.equal(repo.text(\"f.txt\"), FIVE + \"six\\n\");\n+\t\tassert.equal(repo.text(\"f.txt\"), `${FIVE}six\\n`);\n \t});\n });\n \n@@ -335,7 +335,8 @@\n \t\tassert.equal(repo.text(\"g.txt\"), \"g1\\ng2\\n\");\n \t\tconst edited = repo.edit({ edits: [{ file: \"g.txt\", old: \"g2\", new: \"G2\" }] });\n \t\tconst removed = repo.edit({ edits: [{ file: \"g.txt\", old: \"g1\\nG2\\n\", new: \"\" }] });\n-\t\tassert.deepEqual(removed.deps, [created.id, edited.id]);\n+\t\tassert.deepEqual(removed.deps, [edited.id]);\n+\t\tassert.deepEqual(repo.graph.closureOf(removed.deps), repo.graph.closureOf([created.id, edited.id]));\n \t\tassert.equal(repo.view().hasFile(\"g.txt\"), false);\n \t\tassert.deepEqual(Object.keys(repo.files()), [\"f.txt\"]);\n \t\tassert.deepEqual(repo.view().knownPaths(), [\"f.txt\", \"g.txt\"]);\n@@ -343,7 +344,8 @@\n \t\t// lines hang off the start (gap rule) and on the deletions: it relies on\n \t\t// the file being empty, so its closure shows only the new text.\n \t\tconst again = repo.edit({ edits: [{ file: \"g.txt\", old: \"\", new: \"fresh\\n\" }] });\n-\t\tassert.deepEqual(again.deps, [created.id, edited.id, removed.id]);\n+\t\tassert.deepEqual(again.deps, [removed.id]);\n+\t\tassert.deepEqual(repo.graph.closureOf(again.deps), repo.graph.closureOf([created.id, edited.id, removed.id]));\n \t\tassert.equal(repo.text(\"g.txt\"), \"fresh\\n\");\n \t\tassert.equal(repo.text(\"g.txt\", repo.graph.closure(again.id)), \"fresh\\n\");\n \t});\n@@ -395,7 +397,8 @@\n \t\t\treliesOn: [{ file: \"g.txt\", start: 0, end: 1 }],\n \t\t});\n \t\tassert.deepEqual(atom.holds, [lineKey(`${g2.id}.0`)]);\n-\t\tassert.deepEqual(atom.deps, [\"a0\", g2.id]);\n+\t\tassert.deepEqual(atom.deps, [g2.id]);\n+\t\tassert.deepEqual(repo.graph.closureOf(atom.deps), repo.graph.closureOf([\"a0\", g2.id]));\n \t});\n \n \tit(\"reliesOn a range of lines also holds the gaps between them\", () => {\n@@ -436,7 +439,8 @@\n \t\tconst three = repo.edit({ edits: [{ file: \"f.txt\", old: \"three\", new: \"THREE\" }] });\n \t\t// Inserting after \"two\": the gap holds mid (a tombstone hanging off \"two\") and then THREE.\n \t\tconst atom = repo.edit({ edits: [{ file: \"f.txt\", old: \"two\\n\", new: \"two\\nnew\\n\", mode: \"after\" }] });\n-\t\tassert.deepEqual(atom.deps, [\"a0\", added.id]);\n+\t\tassert.deepEqual(atom.deps, [added.id]);\n+\t\tassert.deepEqual(repo.graph.closureOf(atom.deps), repo.graph.closureOf([\"a0\", added.id]));\n \t\tassert.equal(repo.text(\"f.txt\"), lines(\"one\", \"two\", \"new\", \"THREE\", \"four\", \"five\"));\n \t\t// It outranks mid, so it sits directly after \"two\" in any set; in its own\n \t\t// closure mid is back (the deletion isn't in it) and stays below it.\n@@ -481,7 +485,8 @@\n \t\tconst draft = repo.draft({ message: \"N after X\", edits: [{ file: \"f.txt\", start: 1, end: 1, lines: [\"N\"] }] });\n \t\tassert.deepEqual(repo.check(draft).conflicts, []);\n \t\tconst N = repo.edit({ message: \"N after X\", edits: [{ file: \"f.txt\", start: 1, end: 1, lines: [\"N\"] }] });\n-\t\tassert.deepEqual(N.deps, [\"a0\", A.id, B.id]);\n+\t\tassert.deepEqual(N.deps, [A.id, B.id]);\n+\t\tassert.deepEqual(repo.graph.closureOf(N.deps), repo.graph.closureOf([\"a0\", A.id, B.id]));\n \t\tassert.equal(repo.text(\"f.txt\"), lines(\"X\", \"N\", \"B\", \"A\", \"Y\"));\n \t\tassert.deepEqual(\n \t\t\tconflicts(repo.graph, repo.shared).map((c) => c.atoms),\n@@ -504,7 +509,8 @@\n \t\t// Deleting \"three\" (the line below the insert) touches nothing the insert wrote,\n \t\t// but it changes a line the insert read: a sequential edit, so a dependency.\n \t\tconst atom = repo.edit({ edits: [{ file: \"f.txt\", old: \"three\\n\", new: \"\" }] });\n-\t\tassert.deepEqual(atom.deps, [\"a0\", between.id]);\n+\t\tassert.deepEqual(atom.deps, [between.id]);\n+\t\tassert.deepEqual(repo.graph.closureOf(atom.deps), repo.graph.closureOf([\"a0\", between.id]));\n \t\tassert.deepEqual(\n \t\t\tcheckDraft(repo.graph, repo.shared, repo.draft({ edits: [{ file: \"f.txt\", old: \"four\\n\", new: \"\" }] })).conflicts,\n \t\t\t[],"}],"unmatched":[]}