Skip to content

Commit

Permalink
Update ExpensiMark test
Browse files Browse the repository at this point in the history
  • Loading branch information
parasharrajat committed Apr 12, 2021
1 parent 6a9d250 commit 3358a4c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions __tests__/ExpensiMark-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ test('Test general email link with various styles', () => {
expect(parser.replace(testString)).toBe(resultString);
});

test('Test link with brackets', () => {
test('Test markdown and url links with inconsistent starting and closing parens', () => {
const testString = '[google](http://google.com/(something)?after=parens) '
+ '([google](http://google.com/(something)?after=parens)) '
+ '([google](https://google.com/)) '
Expand All @@ -304,6 +304,5 @@ test('Test link with brackets', () => {
+ '(((<a href="http://foo.com/(something)?after=parens" target="_blank">http://foo.com/(something)?after=parens</a> '
+ '(((<a href="http://foo.com/(something)?after=parens" target="_blank">http://foo.com/(something)?after=parens</a>))) '
+ '<a href="http://foo.com/(something)?after=parens" target="_blank">http://foo.com/(something)?after=parens</a>))) ';

expect(parser.replace(testString)).toBe(resultString);
});

0 comments on commit 3358a4c

Please sign in to comment.