From 00b7d85256d5065c2d75fd744110a877b626798e Mon Sep 17 00:00:00 2001 From: Marcin Mielnicki Date: Wed, 1 Nov 2023 14:27:47 +0100 Subject: [PATCH] Verify js file --- .../reporters/html/HtmlGanttDiagramReporterTest.groovy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests-execution-chart-commons/src/test/groovy/io/github/platan/tests_execution_chart/reporters/html/HtmlGanttDiagramReporterTest.groovy b/tests-execution-chart-commons/src/test/groovy/io/github/platan/tests_execution_chart/reporters/html/HtmlGanttDiagramReporterTest.groovy index 6b56b5d..4b33514 100644 --- a/tests-execution-chart-commons/src/test/groovy/io/github/platan/tests_execution_chart/reporters/html/HtmlGanttDiagramReporterTest.groovy +++ b/tests-execution-chart-commons/src/test/groovy/io/github/platan/tests_execution_chart/reporters/html/HtmlGanttDiagramReporterTest.groovy @@ -30,6 +30,7 @@ class HtmlGanttDiagramReporterTest extends Specification { then: def reportContent = new File(baseDir, "$configOutputLocation/my-task.html").text reportContent.contains '' + new File(baseDir, "$configOutputLocation/mermaid.min.js").exists() } def "should not embed script file"() { @@ -45,5 +46,6 @@ class HtmlGanttDiagramReporterTest extends Specification { then: def reportContent = new File(baseDir, "$configOutputLocation/my-task.html").text reportContent.contains """""" + !new File(baseDir, "$configOutputLocation/mermaid.min.js").exists() } }