import { describe, it, expect, beforeEach } from "vitest";
import { siteSettingsFactory } from "@/__factories__/site-settings.factory";

describe("siteSettingsFactory", () => {
  beforeEach(() => siteSettingsFactory.reset());

  it("returns SiteSettings with stable defaults", () => {
    const s = siteSettingsFactory.build();
    expect(s.siteName).toBe("Site 1");
  });

  it("applies overrides", () => {
    const s = siteSettingsFactory.build({ siteName: "My Brand" });
    expect(s.siteName).toBe("My Brand");
  });

  it("increments sequence per build (siteName reflects it)", () => {
    const a = siteSettingsFactory.build();
    const b = siteSettingsFactory.build();
    expect(a.siteName).toBe("Site 1");
    expect(b.siteName).toBe("Site 2");
  });
});
