Skip to content

Commit

Permalink
Removed the test case for checking TOC present as the log statement t…
Browse files Browse the repository at this point in the history
…o display the TOC not found is removed now

The log statement is removed as it is unnecessary and clutters the check stack trace and also it isn't mandatory to have a TOC on every page so the check is not needed.
  • Loading branch information
Rd4dev committed Oct 3, 2024
1 parent c18ac91 commit 2dfd045
Showing 1 changed file with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,28 +66,6 @@ class WikiTableOfContentsCheckTest {
assertThat(outContent.toString().trim()).contains(WIKI_TOC_CHECK_PASSED_OUTPUT_INDICATOR)
}

@Test
fun testWikiTOCCheck_missingWikiTOC_returnsNoTOCFound() {
tempFolder.newFolder("wiki")
val file = tempFolder.newFile("wiki/wiki.md")
file.writeText(
"""
- [Introduction](#introduction)
- [Usage](#usage)
## Introduction
Content
## Usage
Content
""".trimIndent()
)

runScript()

assertThat(outContent.toString().trim()).contains("No Table of Contents found")
}

@Test
fun testWikiTOCCheck_mismatchWikiTOC_checkFail() {
tempFolder.newFolder("wiki")
Expand Down

0 comments on commit 2dfd045

Please sign in to comment.