Skip to content

Commit

Permalink
add unit tests for multiple line empty alias case
Browse files Browse the repository at this point in the history
  • Loading branch information
eh2077 committed Jul 4, 2023
1 parent 049deed commit 3b8db3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions __tests__/ExpensiMark-HTML-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,7 @@ test('Test markdown style email link with various styles', () => {
+ '[Applause]([email protected]) '
+ '[]([email protected])' // only parse autoEmail in ()
+ '[ ]([email protected])' // only parse autoEmail in () and keep spaces in []
+ '[ \n ]([email protected])' // only parse autoEmail in () and keep spaces in []
+ '[ Expensify ]([email protected])' // edge spaces in []
+ '[ Expensify Email ]([email protected])' // space between words in []
+ '[[email protected]]([email protected])' // same email between [] and ()
Expand All @@ -528,6 +529,7 @@ test('Test markdown style email link with various styles', () => {
+ '<a href="mailto:[email protected]">Applause</a> '
+ '[](<a href="mailto:[email protected]">[email protected]</a>)'
+ '[ ](<a href="mailto:[email protected]">[email protected]</a>)'
+ '[ <br /> ](<a href="mailto:[email protected]">[email protected]</a>)'
+ '<a href="mailto:[email protected]">Expensify</a>'
+ '<a href="mailto:[email protected]">Expensify Email</a>'
+ '<a href="mailto:[email protected]">[email protected]</a>'
Expand Down

0 comments on commit 3b8db3a

Please sign in to comment.