mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Format file.
This commit is contained in:
committed by
Benoit Marty
parent
7d55116347
commit
94e7b59e37
+24
-16
@@ -192,10 +192,12 @@ class TimelineItemContentMessageFactoryTest {
|
|||||||
htmlConverterTransform = { expected }
|
htmlConverterTransform = { expected }
|
||||||
)
|
)
|
||||||
val result = sut.create(
|
val result = sut.create(
|
||||||
content = createMessageContent(type = TextMessageType(
|
content = createMessageContent(
|
||||||
body = "body",
|
type = TextMessageType(
|
||||||
formatted = FormattedBody(MessageFormat.HTML, expected.toString())
|
body = "body",
|
||||||
)),
|
formatted = FormattedBody(MessageFormat.HTML, expected.toString())
|
||||||
|
)
|
||||||
|
),
|
||||||
senderDisplayName = "Bob",
|
senderDisplayName = "Bob",
|
||||||
eventId = AN_EVENT_ID,
|
eventId = AN_EVENT_ID,
|
||||||
)
|
)
|
||||||
@@ -208,10 +210,12 @@ class TimelineItemContentMessageFactoryTest {
|
|||||||
htmlConverterTransform = { it }
|
htmlConverterTransform = { it }
|
||||||
)
|
)
|
||||||
val result = sut.create(
|
val result = sut.create(
|
||||||
content = createMessageContent(type = TextMessageType(
|
content = createMessageContent(
|
||||||
body = "body",
|
type = TextMessageType(
|
||||||
formatted = FormattedBody(MessageFormat.UNKNOWN, "formatted")
|
body = "body",
|
||||||
)),
|
formatted = FormattedBody(MessageFormat.UNKNOWN, "formatted")
|
||||||
|
)
|
||||||
|
),
|
||||||
senderDisplayName = "Bob",
|
senderDisplayName = "Bob",
|
||||||
eventId = AN_EVENT_ID,
|
eventId = AN_EVENT_ID,
|
||||||
)
|
)
|
||||||
@@ -552,10 +556,12 @@ class TimelineItemContentMessageFactoryTest {
|
|||||||
fun `test create NoticeMessageType with HTML formatted body`() = runTest {
|
fun `test create NoticeMessageType with HTML formatted body`() = runTest {
|
||||||
val sut = createTimelineItemContentMessageFactory()
|
val sut = createTimelineItemContentMessageFactory()
|
||||||
val result = sut.create(
|
val result = sut.create(
|
||||||
content = createMessageContent(type = NoticeMessageType(
|
content = createMessageContent(
|
||||||
body = "body",
|
type = NoticeMessageType(
|
||||||
formatted = FormattedBody(MessageFormat.HTML, "formatted")
|
body = "body",
|
||||||
)),
|
formatted = FormattedBody(MessageFormat.HTML, "formatted")
|
||||||
|
)
|
||||||
|
),
|
||||||
senderDisplayName = "Bob",
|
senderDisplayName = "Bob",
|
||||||
eventId = AN_EVENT_ID,
|
eventId = AN_EVENT_ID,
|
||||||
)
|
)
|
||||||
@@ -584,10 +590,12 @@ class TimelineItemContentMessageFactoryTest {
|
|||||||
fun `test create EmoteMessageType with HTML formatted body`() = runTest {
|
fun `test create EmoteMessageType with HTML formatted body`() = runTest {
|
||||||
val sut = createTimelineItemContentMessageFactory()
|
val sut = createTimelineItemContentMessageFactory()
|
||||||
val result = sut.create(
|
val result = sut.create(
|
||||||
content = createMessageContent(type = EmoteMessageType(
|
content = createMessageContent(
|
||||||
body = "body",
|
type = EmoteMessageType(
|
||||||
formatted = FormattedBody(MessageFormat.HTML, "formatted")
|
body = "body",
|
||||||
)),
|
formatted = FormattedBody(MessageFormat.HTML, "formatted")
|
||||||
|
)
|
||||||
|
),
|
||||||
senderDisplayName = "Bob",
|
senderDisplayName = "Bob",
|
||||||
eventId = AN_EVENT_ID,
|
eventId = AN_EVENT_ID,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user