diff options
author | Marcin Aman <maman@virtuslab.com> | 2020-05-31 21:02:46 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-06-09 17:18:17 +0200 |
commit | 77c8777b7f66bddd374d68decd507547d356d602 (patch) | |
tree | f941a53d1591c56edd454ef40068e831a4ed9d48 /plugins/base/src/test/kotlin/markdown | |
parent | 902b670bc764a6db4f49f96d08f2115dd08bdf9b (diff) | |
download | dokka-77c8777b7f66bddd374d68decd507547d356d602.tar.gz dokka-77c8777b7f66bddd374d68decd507547d356d602.tar.bz2 dokka-77c8777b7f66bddd374d68decd507547d356d602.zip |
Improve CSS, pages navigation tree and create anchors on page
Diffstat (limited to 'plugins/base/src/test/kotlin/markdown')
-rw-r--r-- | plugins/base/src/test/kotlin/markdown/LinkTest.kt | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/plugins/base/src/test/kotlin/markdown/LinkTest.kt b/plugins/base/src/test/kotlin/markdown/LinkTest.kt index fe5b573a..20bd24ee 100644 --- a/plugins/base/src/test/kotlin/markdown/LinkTest.kt +++ b/plugins/base/src/test/kotlin/markdown/LinkTest.kt @@ -33,15 +33,12 @@ class LinkTest : AbstractCoreTest() { configuration ) { renderingStage = { rootPageNode, _ -> - (rootPageNode.children.single().children.single() as MemberPageNode) + assertNotNull((rootPageNode.children.single().children.single() as MemberPageNode) .content - .dfs { node -> node is ContentDRILink } - .let { - assertEquals( - "parser//test/#java.lang.ClassLoader/PointingToDeclaration/", - (it as ContentDRILink).address.toString() - ) - } + .dfs { node -> + node is ContentDRILink && + node.address.toString() == "parser//test/#java.lang.ClassLoader/PointingToDeclaration/"} + ) } } } |