From 2a14039733925dec8ab0acac1e5b5b929ef72b28 Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Sun, 6 Dec 2020 11:12:14 +0100 Subject: [PATCH] exepect ids as first parameter --- src/diagrams/flowchart/parser/flow-interactions.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/diagrams/flowchart/parser/flow-interactions.spec.js b/src/diagrams/flowchart/parser/flow-interactions.spec.js index 2aa814dbe..77abbfe59 100644 --- a/src/diagrams/flowchart/parser/flow-interactions.spec.js +++ b/src/diagrams/flowchart/parser/flow-interactions.spec.js @@ -31,7 +31,7 @@ describe('[Interactions] when parsing', () => { const edges = flow.parser.yy.getEdges(); expect(flowDb.setClickEvent).toHaveBeenCalledWith('A', 'callback'); - expect(flowDb.setTooltip).toHaveBeenCalledWith('tooltip'); + expect(flowDb.setTooltip).toHaveBeenCalledWith('A','tooltip'); }); it('should handle interaction - click to a link', function() { @@ -53,7 +53,7 @@ describe('[Interactions] when parsing', () => { const edges = flow.parser.yy.getEdges(); expect(flowDb.setLink).toHaveBeenCalledWith('A', 'click.html'); - expect(flowDb.setTooltip).toHaveBeenCalledWith('tooltip'); + expect(flowDb.setTooltip).toHaveBeenCalledWith('A','tooltip'); }); it('should handle interaction - click to a link with target', function() { @@ -75,6 +75,6 @@ describe('[Interactions] when parsing', () => { const edges = flow.parser.yy.getEdges(); expect(flowDb.setLink).toHaveBeenCalledWith('A', 'click.html', '_blank'); - expect(flowDb.setTooltip).toHaveBeenCalledWith('tooltip'); + expect(flowDb.setTooltip).toHaveBeenCalledWith('A','tooltip'); }); });