aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/kotlin/renderers/html/BasicTest.kt
blob: fbcdf70e0a21a2cc850a5ad4e2687c570928e8ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package renderers.html

import org.jetbrains.dokka.base.renderers.html.HtmlRenderer
import org.jetbrains.dokka.links.DRI
import org.junit.jupiter.api.Test
import renderers.testPage
import utils.Span
import utils.match

class BasicTest : HtmlRenderingOnlyTestBase() {
    @Test
    fun `unresolved DRI link should render as text`() {
        val page = testPage {
            link("linkText", DRI("nonexistentPackage", "nonexistentClass"))
        }

        HtmlRenderer(context).render(page)
        renderedContent.match(Span("linkText"))
    }
}