Function
printSized
(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); |
Tested by
no test coverage detected