From 946b2e92b116689cea344391bd7dfb5f847b5948 Mon Sep 17 00:00:00 2001 From: daledah Date: Tue, 7 Jan 2025 00:37:52 +0700 Subject: [PATCH] feat: add test for parsing error case --- src/__tests__/parseExpensiMark.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/__tests__/parseExpensiMark.test.ts b/src/__tests__/parseExpensiMark.test.ts index b49f46fa..1d6a0436 100644 --- a/src/__tests__/parseExpensiMark.test.ts +++ b/src/__tests__/parseExpensiMark.test.ts @@ -31,6 +31,10 @@ test('no formatting', () => { expect('Hello, world!').toBeParsedAs([]); }); +describe('parsing error', () => { + expect(`> [exa\nmple.com](https://example.com)`).toBeParsedAs([]); +}); + test('bold', () => { expect('Hello, *world*!').toBeParsedAs([ {type: 'syntax', start: 7, length: 1},