diff --git a/packages/mermaid/src/diagrams/common/common.spec.ts b/packages/mermaid/src/diagrams/common/common.spec.ts
index 4dac5b33c1..9af2444061 100644
--- a/packages/mermaid/src/diagrams/common/common.spec.ts
+++ b/packages/mermaid/src/diagrams/common/common.spec.ts
@@ -38,6 +38,20 @@ describe('when securityLevel is antiscript, all script must be removed', () => {
compareRemoveScript(``, ``);
});
+ it('should detect unsecured target attribute, if value is _blank then generate a secured link', () => {
+ compareRemoveScript(
+ `note about mermaid`,
+ `note about mermaid`
+ );
+ });
+
+ it('should detect unsecured target attribute from links', () => {
+ compareRemoveScript(
+ `note about mermaid`,
+ `note about mermaid`
+ );
+ });
+
it('should detect iframes', () => {
compareRemoveScript(
`