import { describe, it, expect } from 'vitest' import { PRESET_GENERATORS } from '../../src/main/coach/presets' describe('PRESET_GENERATORS', () => { it('should register a generator for every documented preset name', () => { const expectedNames = [ 'right_triangle', 'triangle', 'regular_polygon', 'circle_sector', 'venn_diagram', 'coordinate_axes' ] for (const name of expectedNames) { expect(PRESET_GENERATORS.get(name)).toBeTypeOf('function') } }) it('should return undefined for an unknown preset name', () => { expect(PRESET_GENERATORS.get('inexistant')).toBeUndefined() }) })