docs: the alert shows size and age, not the old line count

The code never reads a file it is about to replace just to count its lines: stat
gives the size and the age, and the new content's line count is known without
reading anything. The spec overpromised the old count.
This commit is contained in:
2026-10-07 17:03:29 +08:00
parent adfd78e4eb
commit 01352ab3da
2 changed files with 7 additions and 5 deletions
@@ -1134,7 +1134,7 @@ describe("the mutating operations", () => {
allow,
);
expect(asked[0].operation).toBe("overwrite");
expect(asked[0].details.join(" ")).toContain("Replaces 14 bytes, 4 lines");
expect(asked[0].details.join(" ")).toContain("Replaces 14 bytes");
});
it("creates missing folders, and says so before it does", async () => {