diff options
author | Dmitry Jemerov <intelliyole@gmail.com> | 2014-12-29 20:31:08 +0100 |
---|---|---|
committer | Dmitry Jemerov <intelliyole@gmail.com> | 2014-12-29 20:31:08 +0100 |
commit | 41aeba5f437a7d31e4ee34a660e8262ba7d27790 (patch) | |
tree | f91f6ee668a88ba5a73c0edd86bd45604d34571f /test/src/format | |
parent | badba07c1d151ff5a9cf623abecf7f2c906b5931 (diff) | |
parent | c43a437caa047f787bd3bb84ff612f505d0f8efc (diff) | |
download | dokka-41aeba5f437a7d31e4ee34a660e8262ba7d27790.tar.gz dokka-41aeba5f437a7d31e4ee34a660e8262ba7d27790.tar.bz2 dokka-41aeba5f437a7d31e4ee34a660e8262ba7d27790.zip |
Merge pull request #7 from orangy/empty-description
don't generate "Description" header if nothing is going to follow it
Diffstat (limited to 'test/src/format')
-rw-r--r-- | test/src/format/MarkdownFormatTest.kt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/src/format/MarkdownFormatTest.kt b/test/src/format/MarkdownFormatTest.kt new file mode 100644 index 00000000..beb727da --- /dev/null +++ b/test/src/format/MarkdownFormatTest.kt @@ -0,0 +1,16 @@ +package org.jetbrains.dokka.tests + +import org.junit.Test +import org.jetbrains.dokka.* +import java.io.File +import kotlin.test.assertEquals + +public class MarkdownFormatTest { + private val markdownService = MarkdownFormatService(InMemoryLocationService, KotlinLanguageService()) + + Test fun emptyDescription() { + verifyOutput("test/data/format/emptyDescription.kt") { model, output -> + markdownService.appendNodes(tempLocation, output, model.members.single().members) + } + } +} |