diff --git a/app/javascript/dashboard/helper/specs/emailQuoteExtractor.spec.js b/app/javascript/dashboard/helper/specs/emailQuoteExtractor.spec.js index cdfecfb0a..7848c4975 100644 --- a/app/javascript/dashboard/helper/specs/emailQuoteExtractor.spec.js +++ b/app/javascript/dashboard/helper/specs/emailQuoteExtractor.spec.js @@ -90,20 +90,6 @@ describe('EmailQuoteExtractor', () => { expect(EmailQuoteExtractor.hasQuotes(EMAIL_WITH_SIGNATURE)).toBe(true); }); - describe('robustness', () => { - it('handles large email bodies without throwing', () => { - const bigHtml = '

line

'.repeat(5000); - expect(() => EmailQuoteExtractor.extractQuotes(bigHtml)).not.toThrow(); - expect(() => EmailQuoteExtractor.hasQuotes(bigHtml)).not.toThrow(); - }); - - it('does not crash on malformed HTML', () => { - const malformed = '
<><<

weird

EmailQuoteExtractor.extractQuotes(malformed)).not.toThrow(); - expect(() => EmailQuoteExtractor.hasQuotes(malformed)).not.toThrow(); - }); - }); - describe('HTML sanitization', () => { it('removes onerror handlers from img tags in extractQuotes', () => { const maliciousHtml = '

Hello

';