issue #1404, issue #1762, issue #1763 Add support for line breaks, markdown and mathjax in metadata - fix lint issues

This commit is contained in:
Samuel Cambien
2022-09-23 12:20:08 +02:00
parent b345b27c0f
commit f57fb3923a

View File

@@ -40,19 +40,15 @@ describe('Markdown Pipe', () => {
it('should render regular links', async () => {
await testTransform(
/*eslint-disable quotemark*/
'<a href="https://www.dspace.com">DSpace</a>',
'<a href="https://www.dspace.com">DSpace</a>'
/* eslint-enable quotemark */
);
});
it('should not render javascript links', async () => {
await testTransform(
/*eslint-disable quotemark*/
'<a href="javascript:window.alert(\'bingo!\');">exploit</a>',
'<a>exploit</a>'
/* eslint-enable quotemark */
);
});