import { describe, expect, it } from "vitest";

import { resolvePortfolioProjectViewMode } from "../lib/portfolio";

describe("portfolio helpers", () => {
  it("falls back to GRID when view mode is missing", () => {
    expect(resolvePortfolioProjectViewMode(undefined)).toBe("GRID");
    expect(resolvePortfolioProjectViewMode("unexpected")).toBe("GRID");
  });

  it("keeps supported view modes", () => {
    expect(resolvePortfolioProjectViewMode("STORY")).toBe("STORY");
    expect(resolvePortfolioProjectViewMode("CASE_STUDY")).toBe("CASE_STUDY");
  });
});
