test: remove redundant rotate missing-file no-op case

This commit is contained in:
Peter Steinberger
2026-02-16 08:12:38 +00:00
parent d174c38737
commit d115d48a72

View File

@@ -231,14 +231,6 @@ describe("rotateSessionFile", () => {
expect(bakFiles.length).toBeLessThanOrEqual(3);
});
it("non-existent file: no rotation (returns false)", async () => {
const missingPath = path.join(testDir, "missing.json");
const rotated = await rotateSessionFile(missingPath, 100);
expect(rotated).toBe(false);
});
it("backup file name includes a timestamp", async () => {
await fs.writeFile(storePath, "x".repeat(100), "utf-8");
const before = Date.now();