From c96893f45dedbc09ba7edec3183b938228083c84 Mon Sep 17 00:00:00 2001 From: Bartosz Grajdek Date: Wed, 5 Jun 2024 12:31:05 +0200 Subject: [PATCH] feat: add regression test --- __tests__/ExpensiMark-HTML-test.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/__tests__/ExpensiMark-HTML-test.js b/__tests__/ExpensiMark-HTML-test.js index 7a661409..e2b68b59 100644 --- a/__tests__/ExpensiMark-HTML-test.js +++ b/__tests__/ExpensiMark-HTML-test.js @@ -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 = '
#room
'; + expect(parser.replace(testString)).toBe(resultString); +}); + test('Test for user mention with inlineCodeBlock style', () => { const testString = '`@username@expensify.com`'; const resultString = '@username@expensify.com';