From 2e88c6f70feff1edb9f386110a071df897f3b319 Mon Sep 17 00:00:00 2001 From: Ignat Beresnev Date: Thu, 28 Apr 2022 13:59:57 +0300 Subject: Fix suddenly appearing all-modules-page/index.md file (#2475) * Fix suddenly appearing all-modules-page/index.md file * Add a kdoc for `useOutputLocationFromConfig` param --- .../src/test/kotlin/templates/MultiModuleDocumentationTest.kt | 2 +- .../src/test/kotlin/templates/ResolveLinkCommandResolutionTest.kt | 4 ++-- .../src/test/kotlin/templates/ResolveLinkGfmCommandResolutionTest.kt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/all-modules-page/src/test/kotlin/templates') diff --git a/plugins/all-modules-page/src/test/kotlin/templates/MultiModuleDocumentationTest.kt b/plugins/all-modules-page/src/test/kotlin/templates/MultiModuleDocumentationTest.kt index 64948be8..525331fc 100644 --- a/plugins/all-modules-page/src/test/kotlin/templates/MultiModuleDocumentationTest.kt +++ b/plugins/all-modules-page/src/test/kotlin/templates/MultiModuleDocumentationTest.kt @@ -39,7 +39,7 @@ class MultiModuleDocumentationTest : MultiModuleAbstractTest() { includes = listOf(folder.root.resolve("README.md")) } - testFromData(configuration, preserveOutputLocation = true) { + testFromData(configuration) { allModulesPageCreationStage = { rootPage -> (rootPage as? MultimoduleRootPageNode)?.content?.dfs { it.dci.kind == ContentKind.Cover }?.children?.firstOrNull() ?.assertNode { diff --git a/plugins/all-modules-page/src/test/kotlin/templates/ResolveLinkCommandResolutionTest.kt b/plugins/all-modules-page/src/test/kotlin/templates/ResolveLinkCommandResolutionTest.kt index b7487c16..7ef8c3ea 100644 --- a/plugins/all-modules-page/src/test/kotlin/templates/ResolveLinkCommandResolutionTest.kt +++ b/plugins/all-modules-page/src/test/kotlin/templates/ResolveLinkCommandResolutionTest.kt @@ -59,7 +59,7 @@ class ResolveLinkCommandResolutionTest : MultiModuleAbstractTest() { val contentFile = setup(link) val configuration = configuration() - testFromData(configuration, preserveOutputLocation = true) { + testFromData(configuration, useOutputLocationFromConfig = true) { finishProcessingSubmodules = { assertHtmlEqualsIgnoringWhitespace(expected, contentFile.readText()) } @@ -88,7 +88,7 @@ class ResolveLinkCommandResolutionTest : MultiModuleAbstractTest() { val contentFile = setup(link) val configuration = configuration() - testFromData(configuration, preserveOutputLocation = true) { + testFromData(configuration, useOutputLocationFromConfig = true) { finishProcessingSubmodules = { assertHtmlEqualsIgnoringWhitespace(expected, contentFile.readText()) } diff --git a/plugins/all-modules-page/src/test/kotlin/templates/ResolveLinkGfmCommandResolutionTest.kt b/plugins/all-modules-page/src/test/kotlin/templates/ResolveLinkGfmCommandResolutionTest.kt index 975d3183..b38fb03f 100644 --- a/plugins/all-modules-page/src/test/kotlin/templates/ResolveLinkGfmCommandResolutionTest.kt +++ b/plugins/all-modules-page/src/test/kotlin/templates/ResolveLinkGfmCommandResolutionTest.kt @@ -54,7 +54,7 @@ class ResolveLinkGfmCommandResolutionTest : MultiModuleAbstractTest() { val content = setup(link) val configuration = configuration() - testFromData(configuration, pluginOverrides = listOf(GfmTemplateProcessingPlugin(), GfmPlugin()), preserveOutputLocation = true) { + testFromData(configuration, pluginOverrides = listOf(GfmTemplateProcessingPlugin(), GfmPlugin()), useOutputLocationFromConfig = true) { finishProcessingSubmodules = { assertEquals(expected, content.readText().trim()) } -- cgit