Skip to content

Commit

Permalink
add test containing both code and block
Browse files Browse the repository at this point in the history
  • Loading branch information
akamefi202 committed Nov 30, 2023
1 parent cf53da3 commit 92337a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions __tests__/ExpensiMark-HTML-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1555,4 +1555,7 @@ test('Mention', () => {
test('Test code fence within inline code', () => {
let testString = '`(```test```)`';
expect(parser.replace(testString)).toBe('&#x60;(<pre>test</pre>)&#x60;');

testString = '`test`space```block```';
expect(parser.replace(testString)).toBe('<code>test</code>space<pre>block</pre>');
});

0 comments on commit 92337a1

Please sign in to comment.