mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-25 02:45:53 +03:00
Fix EventHtmlRendererTest
This commit is contained in:
parent
4974fdf905
commit
0b7e52e60b
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue