Fix EventHtmlRendererTest

This commit is contained in:
Jorge Martín 2022-10-04 21:27:52 +02:00 committed by Jorge Martin Espinosa
parent 4974fdf905
commit 0b7e52e60b
1 changed files with 4 additions and 1 deletions

View File

@ -18,6 +18,7 @@ package im.vector.app.features.html
import androidx.core.text.toSpannable import androidx.core.text.toSpannable
import androidx.test.platform.app.InstrumentationRegistry import androidx.test.platform.app.InstrumentationRegistry
import im.vector.app.core.di.ActiveSessionHolder
import im.vector.app.core.resources.ColorProvider import im.vector.app.core.resources.ColorProvider
import im.vector.app.core.utils.toTestSpan import im.vector.app.core.utils.toTestSpan
import im.vector.app.features.settings.VectorPreferences import im.vector.app.features.settings.VectorPreferences
@ -36,11 +37,13 @@ class EventHtmlRendererTest {
private val fakeVectorPreferences = mockk<VectorPreferences>().also { private val fakeVectorPreferences = mockk<VectorPreferences>().also {
every { it.latexMathsIsEnabled() } returns false every { it.latexMathsIsEnabled() } returns false
} }
private val fakeSessionHolder = mockk<ActiveSessionHolder>()
private val renderer = EventHtmlRenderer( private val renderer = EventHtmlRenderer(
MatrixHtmlPluginConfigure(ColorProvider(context), context.resources), MatrixHtmlPluginConfigure(ColorProvider(context), context.resources),
context, context,
fakeVectorPreferences fakeVectorPreferences,
fakeSessionHolder,
) )
@Test @Test