Skip to content

Commit

Permalink
feat: add regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
BartoszGrajdek committed Jun 5, 2024
1 parent 34a4647 commit c96893f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions __tests__/ExpensiMark-HTML-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1274,6 +1274,12 @@ test('Test for user mention with codefence style', () => {
expect(parser.replace(testString)).toBe(resultString);
});

test('Test for room mention with codefence style', () => {
const testString = '```\n#room\n```';
const resultString = '<pre>#room<br /></pre>';
expect(parser.replace(testString)).toBe(resultString);
});

test('Test for user mention with inlineCodeBlock style', () => {
const testString = '`@[email protected]`';
const resultString = '<code>@[email protected]</code>';
Expand Down

0 comments on commit c96893f

Please sign in to comment.