mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-11 05:11:49 +01:00
test: relax markdown sanitizer assertion
This commit is contained in:
1 parent
e83df59452
commit
83b10f4075
1 file changed
+2
-1
@@ -99,7 +99,8 @@ describe("MarkdownBody", () => {
|
||||
it("sanitizes unsafe javascript markdown links", () => {
|
||||
const html = renderMarkdown("[click me](javascript:alert(document.cookie))");
|
||||
|
||||
expect(html).toContain('<a href="" rel="noreferrer">click me</a>');
|
||||
expect(html).toContain('<a href="" rel="noreferrer"');
|
||||
expect(html).toContain(">click me</a>");
|
||||
expect(html).not.toContain("javascript:");
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user