1import { expect, it } from "vite-plus/test";
2import { fitDeviceFrame } from "./deviceFrameLayout";
3
4it("fits a flat device beside the fixed controls rail", () => {
5 const frame = fitDeviceFrame(9 / 19.5, 480, 1_000, 56);
6 expect(frame.width + 56).toBeLessThanOrEqual(480);
7 expect(frame.height).toBeLessThanOrEqual(1_000);
8 expect(frame.width / frame.height).toBeCloseTo(9 / 19.5);
9});