Skip to content

Commit

Permalink
revert changes in HtmlRenderingOnlyTestBase
Browse files Browse the repository at this point in the history
  • Loading branch information
whyoleg committed Oct 24, 2023
1 parent 626a1cb commit cbf05b2
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -49,15 +48,13 @@ abstract class HtmlRenderingOnlyTestBase : RenderingOnlyTestBase<Element>() {
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 {
Expand Down

0 comments on commit cbf05b2

Please sign in to comment.