From c43a437caa047f787bd3bb84ff612f505d0f8efc Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Mon, 29 Dec 2014 20:22:43 +0100 Subject: don't generate "Description" header if nothing is going to follow it --- test/src/format/MarkdownFormatTest.kt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/src/format/MarkdownFormatTest.kt (limited to 'test/src/format') 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) + } + } +} -- cgit