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:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user