From aa9ecde7c89639f0abf48a2de99c6f614a15fff4 Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Sun, 6 Dec 2020 12:53:46 +0100 Subject: [PATCH] prefix with href --- src/diagrams/flowchart/parser/flow-interactions.spec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/diagrams/flowchart/parser/flow-interactions.spec.js b/src/diagrams/flowchart/parser/flow-interactions.spec.js index 77abbfe59..8fa7112b1 100644 --- a/src/diagrams/flowchart/parser/flow-interactions.spec.js +++ b/src/diagrams/flowchart/parser/flow-interactions.spec.js @@ -36,7 +36,7 @@ describe('[Interactions] when parsing', () => { it('should handle interaction - click to a link', function() { spyOn(flowDb, 'setLink'); - const res = flow.parser.parse('graph TD\nA-->B\nclick A "click.html"'); + const res = flow.parser.parse('graph TD\nA-->B\nclick A href "click.html"'); const vert = flow.parser.yy.getVertices(); const edges = flow.parser.yy.getEdges(); @@ -47,7 +47,7 @@ describe('[Interactions] when parsing', () => { it('should handle interaction - click to a link with tooltip', function() { spyOn(flowDb, 'setLink'); spyOn(flowDb, 'setTooltip'); - const res = flow.parser.parse('graph TD\nA-->B\nclick A "click.html" "tooltip"'); + const res = flow.parser.parse('graph TD\nA-->B\nclick A href "click.html" "tooltip"'); const vert = flow.parser.yy.getVertices(); const edges = flow.parser.yy.getEdges(); @@ -58,7 +58,7 @@ describe('[Interactions] when parsing', () => { it('should handle interaction - click to a link with target', function() { spyOn(flowDb, 'setLink'); - const res = flow.parser.parse('graph TD\nA-->B\nclick A "click.html" _blank'); + const res = flow.parser.parse('graph TD\nA-->B\nclick A href "click.html" _blank'); const vert = flow.parser.yy.getVertices(); const edges = flow.parser.yy.getEdges(); @@ -69,7 +69,7 @@ describe('[Interactions] when parsing', () => { it('should handle interaction - click to a link with tooltip and target', function() { spyOn(flowDb, 'setLink'); spyOn(flowDb, 'setTooltip'); - const res = flow.parser.parse('graph TD\nA-->B\nclick A "click.html" "tooltip" _blank'); + const res = flow.parser.parse('graph TD\nA-->B\nclick A href "click.html" "tooltip" _blank'); const vert = flow.parser.yy.getVertices(); const edges = flow.parser.yy.getEdges();