blob: 9653b7bbdd8c48647e25d78992dab2ade6d6e75e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/*
* Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package renderers.html
import org.jetbrains.dokka.base.renderers.html.HtmlRenderer
import org.jetbrains.dokka.links.DRI
import renderers.testPage
import utils.Span
import utils.match
import kotlin.test.Test
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"))
}
}
|