Skip to content

Commit 3ab22f5

Browse files
committed
fix
Signed-off-by: Tihomir Surdilovic <[email protected]>
1 parent 33b2e4e commit 3ab22f5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

diagram/src/test/java/io/serverlessworkflow/diagram/test/CustomTemplateWorkflowDiagramTest.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,15 @@ public void testSpecExamplesParsing(String workflowLocation) throws Exception {
3939
assertNotNull(workflow.getStates());
4040

4141
WorkflowDiagram workflowDiagram =
42-
new WorkflowDiagramImpl().setWorkflow(workflow).setTemplate("custom-template");
42+
new WorkflowDiagramImpl()
43+
.showLegend(true)
44+
.setWorkflow(workflow)
45+
.setTemplate("custom-template");
4346

4447
String diagramSVG = workflowDiagram.getSvgDiagram();
4548

4649
Assertions.assertNotNull(diagramSVG);
47-
// custom template uses #0000FF as start node color
50+
// custom template uses customcolor in the legend
4851
Assertions.assertTrue(diagramSVG.contains("customcolor"));
4952
}
5053
}

0 commit comments

Comments
 (0)