import { describe, it, expect } from "vitest";
import {
  GUEST_SESSION_COOKIE_NAME,
  GUEST_SESSION_MAX_AGE_DAYS,
  GUEST_SESSION_MAX_AGE_SECONDS,
} from "./constants";

describe("session constants", () => {
  it("GUEST_SESSION_COOKIE_NAME is _store_session", () => {
    expect(GUEST_SESSION_COOKIE_NAME).toBe("_store_session");
  });

  it("GUEST_SESSION_MAX_AGE_DAYS is 30", () => {
    expect(GUEST_SESSION_MAX_AGE_DAYS).toBe(30);
  });

  it("GUEST_SESSION_MAX_AGE_SECONDS equals 30 days in seconds", () => {
    const expected = 30 * 24 * 60 * 60;
    expect(GUEST_SESSION_MAX_AGE_SECONDS).toBe(expected);
  });
});
