import { expect, it } from "vitest";
import { expired } from "./retention.rules.js";

it("keeps two weeks and the newest of every month, and never touches other folders", () => {
  expect(expired(["2026-10-01_01-00-00", "2026-10-31_01-00-00", "2026-11-02_01-00-00", "2026-11-10_01-00-00", "2026-11-20_01-00-00", "2026-12-01_01-00-00", "files", "my notes"], "2026-12-01_01-00-00"))
    .toEqual(["2026-10-01_01-00-00", "2026-11-02_01-00-00", "2026-11-10_01-00-00"]);
});
