From 106b78b812981f42984d3b13c734ab9ec6569475 Mon Sep 17 00:00:00 2001 From: BrtqKr Date: Mon, 27 May 2024 11:41:05 +0200 Subject: [PATCH] update tests --- __tests__/ExpensiMark-HTML-test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/__tests__/ExpensiMark-HTML-test.js b/__tests__/ExpensiMark-HTML-test.js index 1a137162..f0da1504 100644 --- a/__tests__/ExpensiMark-HTML-test.js +++ b/__tests__/ExpensiMark-HTML-test.js @@ -1040,15 +1040,15 @@ test('Test quotes markdown replacement and removing
from
 and  {
+test('Test quotes markdown replacement including blank quotes', () => {
     const testString = '> \n>';
-    const resultString = '> 
>'; + const resultString = '
'; expect(parser.replace(testString)).toBe(resultString); }); test('Test quotes markdown replacement with text starts with blank quote', () => { const testString = '> \ntest'; - const resultString = '>
test'; + const resultString = '
test'; expect(parser.replace(testString)).toBe(resultString); }); @@ -1078,7 +1078,7 @@ test('Test quotes markdown replacement with quotes includes multiple middle blan test('Test quotes markdown replacement with text includes blank quotes', () => { const testString = '> \n> quote1 line a\n> quote1 line b\ntest\n> \ntest\n> quote2 line a\n> \n> \n> quote2 line b with an empty line above'; - const resultString = '
quote1 line a
quote1 line b
test
>
test
quote2 line a


quote2 line b with an empty line above
'; + const resultString = '
quote1 line a
quote1 line b
test
test
quote2 line a


quote2 line b with an empty line above
'; expect(parser.replace(testString)).toBe(resultString); });