From cbf05b21f1f712c9196b6004db6e780f1800fc22 Mon Sep 17 00:00:00 2001 From: Oleg Yukhnevich Date: Tue, 24 Oct 2023 12:50:35 +0300 Subject: [PATCH] revert changes in HtmlRenderingOnlyTestBase --- .../kotlin/renderers/html/HtmlRenderingOnlyTestBase.kt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/plugins/base/src/test/kotlin/renderers/html/HtmlRenderingOnlyTestBase.kt b/plugins/base/src/test/kotlin/renderers/html/HtmlRenderingOnlyTestBase.kt index 0553c8ab59d..4e098371e7d 100644 --- a/plugins/base/src/test/kotlin/renderers/html/HtmlRenderingOnlyTestBase.kt +++ b/plugins/base/src/test/kotlin/renderers/html/HtmlRenderingOnlyTestBase.kt @@ -4,7 +4,6 @@ package renderers.html -import org.jetbrains.dokka.DokkaConfiguration import org.jetbrains.dokka.DokkaConfigurationImpl import org.jetbrains.dokka.Platform import org.jetbrains.dokka.base.DokkaBase @@ -49,15 +48,13 @@ abstract class HtmlRenderingOnlyTestBase : RenderingOnlyTestBase() { finalizeCoroutines = false ) - override val context by lazy { context(configuration) } - - fun context(testConfiguration: DokkaConfiguration): MockContext = MockContext( + override val context = MockContext( DokkaBase().outputWriter to { files }, DokkaBase().locationProviderFactory to ::DokkaLocationProviderFactory, DokkaBase().htmlPreprocessors to { RootCreator }, DokkaBase().externalLocationProviderFactory to ::JavadocExternalLocationProviderFactory, DokkaBase().externalLocationProviderFactory to ::DefaultExternalLocationProviderFactory, - testConfiguration = testConfiguration + testConfiguration = configuration ) override val renderedContent: Element by lazy {