import { describe, test, expect } from 'vitest'; import { FormButton } from './FormButton'; const toHtml = (FormButton as any).toHtml; describe('FormButton.toHtml', () => { test('normal text renders as-is', () => { const { html } = toHtml({ text: 'Send it' }, ''); expect(html).toContain('>Send it<'); expect(html).toContain('type="submit"'); }); test('type="submit" is a hardcoded literal, not prop-driven', () => { const { html } = toHtml({ text: 'Submit' }, ''); expect(html).toMatch(/