(rowHeight: DataGridProps<Row>['rowHeight'])
| 6 | type Row = number; |
| 7 | |
| 8 | function setupGrid(rowHeight: DataGridProps<Row>['rowHeight']) { |
| 9 | const columns: Column<Row>[] = []; |
| 10 | const rows: readonly Row[] = Array.from({ length: 50 }, (_, i) => i); |
| 11 | |
| 12 | for (let i = 0; i < 5; i++) { |
| 13 | const key = String(i); |
| 14 | columns.push({ |
| 15 | key, |
| 16 | name: key, |
| 17 | width: 80 |
| 18 | }); |
| 19 | } |
| 20 | return setup({ columns, rows, rowHeight }, true); |
| 21 | } |
| 22 | |
| 23 | async function expectGridRows(rowHeightFn: (row: number) => number, expected: string) { |
| 24 | await setupGrid(rowHeightFn); |
no test coverage detected