(expected: string[][], table: SugarElement<HTMLTableElement>, newWidth: string)
| 122 | }; |
| 123 | |
| 124 | const checkWidth = (expected: string[][], table: SugarElement<HTMLTableElement>, newWidth: string) => { |
| 125 | Insert.append(SugarBody.body(), table); |
| 126 | Sizes.redistribute(table, Optional.some(newWidth), Optional.none()); |
| 127 | Assert.eq('', expected, readWidth(table)); |
| 128 | Remove.remove(table); |
| 129 | }; |
| 130 | |
| 131 | const checkBasicWidth = (expected: string[][], input: string[][], initialWidth: string, newWidth: string) => { |
| 132 | const table = generateW(input, initialWidth); |