mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Use buildSpannedString
This commit is contained in:
+1
-1
@@ -178,7 +178,7 @@ class TimelineItemContentMessageFactoryTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `test create TextMessageType with HTML formatted body`() = runTest {
|
fun `test create TextMessageType with HTML formatted body`() = runTest {
|
||||||
val expected = SpannableStringBuilder().apply {
|
val expected = buildSpannedString {
|
||||||
append("link to ")
|
append("link to ")
|
||||||
inSpans(URLSpan("https://matrix.org")) {
|
inSpans(URLSpan("https://matrix.org")) {
|
||||||
append("https://matrix.org")
|
append("https://matrix.org")
|
||||||
|
|||||||
Reference in New Issue
Block a user