Skip to content

Commit

Permalink
feat: add test for parsing error case
Browse files Browse the repository at this point in the history
  • Loading branch information
daledah committed Jan 6, 2025
1 parent 414150c commit 946b2e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/__tests__/parseExpensiMark.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down

0 comments on commit 946b2e9

Please sign in to comment.