| 1 | import { describe, expect, it } from "vite-plus/test"; |
| 2 | |
| 3 | import { resolveAndroidControlSizing } from "./androidControlSizing"; |
| 4 | |
| 5 | describe("Android control sizing", () => { |
| 6 | it.each([ |
| 7 | [11, 17, 48, 48, 172, 48], |
| 8 | [16, 24, 48, 56, 250, 48], |
| 9 | [22, 33, 66, 77, 344, 66], |
| 10 | ])( |
| 11 | "scales controls at %ipt", |
| 12 | (fontSize, iconSize, buttonSize, fabSize, menuWidth, menuItemHeight) => { |
| 13 | expect(resolveAndroidControlSizing(fontSize)).toMatchObject({ |
| 14 | iconSize, |
| 15 | buttonSize, |
| 16 | fabSize, |
| 17 | menuWidth, |
| 18 | menuItemHeight, |
| 19 | }); |
| 20 | }, |
| 21 | ); |
| 22 | }); |