Skip to content

Commit d145efb

Browse files
committed
Lexical: Updated tests after link changes
1 parent c54101c commit d145efb

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

resources/js/wysiwyg/lexical/link/__tests__/unit/LexicalAutoLinkNode.test.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -273,18 +273,6 @@ describe('LexicalAutoAutoLinkNode tests', () => {
273273
});
274274
});
275275

276-
test('AutoLinkNode.createDOM() sanitizes javascript: URLs', async () => {
277-
const {editor} = testEnv;
278-
279-
await editor.update(() => {
280-
// eslint-disable-next-line no-script-url
281-
const autoLinkNode = new AutoLinkNode('javascript:alert(0)');
282-
expect(autoLinkNode.createDOM(editorConfig).outerHTML).toBe(
283-
'<a href="about:blank" class="my-autolink-class"></a>',
284-
);
285-
});
286-
});
287-
288276
test('AutoLinkNode.updateDOM()', async () => {
289277
const {editor} = testEnv;
290278

resources/js/wysiwyg/lexical/link/__tests__/unit/LexicalLinkNode.test.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -218,18 +218,6 @@ describe('LexicalLinkNode tests', () => {
218218
});
219219
});
220220

221-
test('LinkNode.createDOM() sanitizes javascript: URLs', async () => {
222-
const {editor} = testEnv;
223-
224-
await editor.update(() => {
225-
// eslint-disable-next-line no-script-url
226-
const linkNode = new LinkNode('javascript:alert(0)');
227-
expect(linkNode.createDOM(editorConfig).outerHTML).toBe(
228-
'<a href="about:blank" class="my-link-class"></a>',
229-
);
230-
});
231-
});
232-
233221
test('LinkNode.updateDOM()', async () => {
234222
const {editor} = testEnv;
235223

0 commit comments

Comments
 (0)