import { markdownHtmlAgent } from '../src/services/markdownHtmlAgent'; describe('markdownHtmlAgent (HTML)', () => { it('should generate an HTML string from markdown', async () => { const markdown = '# Titre Test\n\nCeci est un paragraphe de test.'; const html = await markdownHtmlAgent({ title: 'Titre Test', markdown }); expect(typeof html).toBe('string'); expect(html).toMatch(/^/); expect(html).toMatch(/]*>Titre Test<\/h1>/); expect(html).toContain('

Ceci est un paragraphe de test.

'); }); });