import { renderMsg } from './message'; describe('renderMsg', () => { it('should render message with reasoning and output tag adjacent correctly', () => { const problematicText = 'L\'utente vuole che io elenchi i parametri dell\'ALBERO ESISTENTE.\n\n\n\nRecupero tutti i 7 parametri dell\'ALBERO ESISTENTE...'; const result = renderMsg(problematicText, false, 'Reasoning...', true); expect(result.text).toBe( '
Reasoning...L\'utente vuole che io elenchi i parametri dell\'ALBERO ESISTENTE.
\n\n\n\n

Recupero tutti i 7 parametri dell\'ALBERO ESISTENTE...

' ); }); });