MCPcopy Index your code
hub / github.com/JavaScriptRegenerated/yieldparser / printSized

Function printSized

src/media-query.test.ts:516–523  ·  view source on GitHub ↗
(viewportWidth: number, viewportHeight: number)

Source from the content-addressed store, hash-verified

514 } as const);
515
516 const printSized = (viewportWidth: number, viewportHeight: number) =>
517 ({
518 mediaType: 'print',
519 viewportWidth,
520 viewportHeight,
521 viewportZoom: 1,
522 rootFontSizePx: defaultRootFontSizePx,
523 } as const);
524
525 expect(matchMedia(screenSized(100, 100), 'screen').matches).toBe(true);
526 expect(matchMedia(screenSized(100, 100), 'only screen').matches).toBe(true);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected