| 1 | import { describe, expect, it } from 'vitest' |
| 2 | import { |
| 3 | extractChartHeightFromComment, |
| 4 | normalizeChartHeight, |
| 5 | parseChartHeightClass |
| 6 | } from '../../../src/main/presentation/html/chart-height' |
| 7 | |
| 8 | describe('presentation chart-height helpers', () => { |
| 9 | it('keeps chart marker parsing and bounds in the presentation domain', () => { |
| 10 | expect(extractChartHeightFromComment('layout @ppt-chart-height=420')).toBe(420) |
| 11 | expect(parseChartHeightClass('h-[420px]')).toBe(420) |
| 12 | expect(normalizeChartHeight(761)).toBeNull() |
| 13 | }) |
| 14 | }) |
| 15 |