diff options
Diffstat (limited to 'core/src/test')
-rw-r--r-- | core/src/test/kotlin/format/GFMFormatTest.kt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/core/src/test/kotlin/format/GFMFormatTest.kt b/core/src/test/kotlin/format/GFMFormatTest.kt new file mode 100644 index 00000000..7f7ee286 --- /dev/null +++ b/core/src/test/kotlin/format/GFMFormatTest.kt @@ -0,0 +1,19 @@ +package org.jetbrains.dokka.tests + +import org.jetbrains.dokka.GFMFormatService +import org.jetbrains.dokka.KotlinLanguageService +import org.junit.Test + +class GFMFormatTest { + private val gfmService = GFMFormatService(InMemoryLocationService, KotlinLanguageService()) + + @Test fun sample() { + verifyGFMNodeByName("sample", "Foo") + } + + private fun verifyGFMNodeByName(fileName: String, name: String) { + verifyOutput("testdata/format/gfm/$fileName.kt", ".md") { model, output -> + gfmService.appendNodes(tempLocation, output, model.members.single().members.filter { it.name == name }) + } + } +} |