Skip to content

Commit ef17304

Browse files
committed
remove multiline link tests.
Signed-off-by: krishna2323 <[email protected]>
1 parent 186a7a4 commit ef17304

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

__tests__/ExpensiMark-HTML-test.js

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -223,24 +223,6 @@ test('Test markdown replacement for emails wrapped in bold/strikethrough/italic
223223
expect(parser.replace(testInput)).toBe(result);
224224
});
225225

226-
test('Test markdown replacement for multiline email hyperlinks', () => {
227-
let testInput = '[test\ntest]([email protected])';
228-
let result = '<a href="mailto:[email protected]">test<br />test</a>';
229-
expect(parser.replace(testInput)).toBe(result);
230-
231-
testInput = '[test\n\n\n]([email protected])';
232-
result = '<a href="mailto:[email protected]">test</a>';
233-
expect(parser.replace(testInput)).toBe(result);
234-
235-
testInput = '[test\ntest](test.com)';
236-
result = '<a href="https://test.com" target="_blank" rel="noreferrer noopener">test<br />test</a>';
237-
expect(parser.replace(testInput)).toBe(result);
238-
239-
testInput = '[email protected]';
240-
result = '<a href="mailto:[email protected]">[email protected]</a>';
241-
expect(parser.replace(testInput)).toBe(result);
242-
});
243-
244226
// Check emails within other markdown
245227
test('Test emails within other markdown', () => {
246228
const testString =
@@ -1804,16 +1786,6 @@ test('Test link with header before the alias multiline text part', () => {
18041786
expect(parser.replace(testString)).toBe(resultString);
18051787
});
18061788

1807-
test('Test markdown replacement for quoted multiline links', () => {
1808-
let testString = `> exa\nmple.com`;
1809-
let resultString = `<blockquote>exa</blockquote><a href="https://mple.com" target="_blank" rel="noreferrer noopener">mple.com</a>`
1810-
expect(parser.replace(testString)).toBe(resultString);
1811-
1812-
testString = `> [exa\nmple.com](https://example.com)`;
1813-
resultString = `<blockquote><a href="https://example.com" target="_blank" rel="noreferrer noopener">exa<br />mple.com</a></blockquote>`
1814-
expect(parser.replace(testString)).toBe(resultString);
1815-
});
1816-
18171789
test('Test nested link', () => {
18181790
let testString = `> example.com`;
18191791
let resultString = `<blockquote><a href="https://example.com" target="_blank" rel="noreferrer noopener">example.com</a></blockquote>`

0 commit comments

Comments
 (0)