From 16163f30353a6a17d3c038c5ec1f00c5b32f1f80 Mon Sep 17 00:00:00 2001 From: Paweł Marks Date: Thu, 27 Feb 2020 10:50:48 +0100 Subject: Small adjustments to the new model --- plugins/base/src/test/kotlin/markdown/KDocTest.kt | 5 ++--- plugins/base/src/test/kotlin/multiplatform/BasicMultiplatformTest.kt | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'plugins/base/src/test/kotlin') diff --git a/plugins/base/src/test/kotlin/markdown/KDocTest.kt b/plugins/base/src/test/kotlin/markdown/KDocTest.kt index c58c4e30..5099c46f 100644 --- a/plugins/base/src/test/kotlin/markdown/KDocTest.kt +++ b/plugins/base/src/test/kotlin/markdown/KDocTest.kt @@ -27,9 +27,8 @@ open class KDocTest : AbstractCoreTest() { private fun actualDocumentationNode(modulePageNode: ModulePageNode) = (modulePageNode.documentable?.children?.first() as Package) - .classlikes.first() - .platformInfo.first() - .documentationNode + .classlikes.single() + .documentation.values.single() protected fun executeTest(kdoc: String, expectedDocumentationNode: DocumentationNode) { diff --git a/plugins/base/src/test/kotlin/multiplatform/BasicMultiplatformTest.kt b/plugins/base/src/test/kotlin/multiplatform/BasicMultiplatformTest.kt index f9431bbb..ae5b4e06 100644 --- a/plugins/base/src/test/kotlin/multiplatform/BasicMultiplatformTest.kt +++ b/plugins/base/src/test/kotlin/multiplatform/BasicMultiplatformTest.kt @@ -47,8 +47,7 @@ class BasicMultiplatformTest : AbstractCoreTest() { configuration ) { pagesGenerationStage = { - println(it.dri) - assertEquals(7, it.parentMap.size) + assertEquals(6, it.parentMap.size) } } } -- cgit