Skip to content

Commit

Permalink
Verify js file
Browse files Browse the repository at this point in the history
  • Loading branch information
platan committed Nov 1, 2023
1 parent 4e7ebc3 commit 00b7d85
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class HtmlGanttDiagramReporterTest extends Specification {
then:
def reportContent = new File(baseDir, "$configOutputLocation/my-task.html").text
reportContent.contains '<script src="mermaid.min.js"></script>'
new File(baseDir, "$configOutputLocation/mermaid.min.js").exists()
}

def "should not embed script file"() {
Expand All @@ -45,5 +46,6 @@ class HtmlGanttDiagramReporterTest extends Specification {
then:
def reportContent = new File(baseDir, "$configOutputLocation/my-task.html").text
reportContent.contains """<script src="$scriptSource"></script>"""
!new File(baseDir, "$configOutputLocation/mermaid.min.js").exists()
}
}

0 comments on commit 00b7d85

Please sign in to comment.