From da78ef86946f69b89b2173714b75f98dc357005d Mon Sep 17 00:00:00 2001 From: aoright <102943475+aoright@users.noreply.github.com> Date: Wed, 19 Aug 2026 12:47:06 +0800 Subject: [PATCH] test: add test case for parseInline with empty input Signed-off-by: aoright <102943475+aoright@users.noreply.github.com> --- test/unit/marked.test.js | 6 ++++++ 1 file changed, 6 insertions(+) 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', () => {