13 lines · 437 B · TypeScript
RawDownload
import { describe, expect, it } from "vite-plus/test"; import { getPreviewPanelMaxWidth } from "./PreviewPanelShell"; describe("getPreviewPanelMaxWidth", () => {  it("allows the panel to use 70% of an ultra-wide viewport without a pixel ceiling", () => {    expect(getPreviewPanelMaxWidth(6_000)).toBe(4_200);  });   it("rounds fractional CSS pixels down", () => {    expect(getPreviewPanelMaxWidth(2_001)).toBe(1_400);  });});

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t