mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 01:15:54 +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.test.platform.app.InstrumentationRegistry
|
||||
import im.vector.app.core.di.ActiveSessionHolder
|
||||
import im.vector.app.core.resources.ColorProvider
|
||||
import im.vector.app.core.utils.toTestSpan
|
||||
import im.vector.app.features.settings.VectorPreferences
|
||||
|
@ -36,11 +37,13 @@ class EventHtmlRendererTest {
|
|||
private val fakeVectorPreferences = mockk<VectorPreferences>().also {
|
||||
every { it.latexMathsIsEnabled() } returns false
|
||||
}
|
||||
private val fakeSessionHolder = mockk<ActiveSessionHolder>()
|
||||
|
||||
private val renderer = EventHtmlRenderer(
|
||||
MatrixHtmlPluginConfigure(ColorProvider(context), context.resources),
|
||||
context,
|
||||
fakeVectorPreferences
|
||||
fakeVectorPreferences,
|
||||
fakeSessionHolder,
|
||||
)
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in a new issue