import { describe, expect, it } from "vitest"; import { getMobileWorkbenchSheetHeight } from "./mobile-workbench-sheet-layout"; describe("mobile workbench sheet heights", () => { it("keeps the two deterministic snap heights", () => { expect(getMobileWorkbenchSheetHeight("half", 844)).toBe(439); expect(getMobileWorkbenchSheetHeight("full", 844)).toBe(776); }); it("always leaves the configured map strip visible at full height", () => { const viewportHeight = 667; const sheetHeight = getMobileWorkbenchSheetHeight("full", viewportHeight); expect(viewportHeight - sheetHeight).toBe(68); }); });