Format file.
This commit is contained in:
parent
fc5a41ec98
commit
e55738d7fa
1 changed files with 24 additions and 16 deletions
|
|
@ -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,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue