diff --git a/test/unit/marked.test.js b/test/unit/marked.test.js index 5d1449b4aa..93ec3cfa67 100644 --- a/test/unit/marked.test.js +++ b/test/unit/marked.test.js @@ -56,6 +56,12 @@ describe('marked unit', () => { assert.strictEqual(html, '# header\n\nem'); }); + + it('should return empty string for empty input', () => { + const html = parseInline(''); + + assert.strictEqual(html, ''); + }); }); describe('link in link text', () => {