From e55738d7fa97db5b833cd9c3151c853ab93b0643 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Fri, 15 Dec 2023 14:51:28 +0100 Subject: [PATCH] Format file. --- .../TimelineItemContentMessageFactoryTest.kt | 40 +++++++++++-------- 1 file changed, 24 insertions(+), 16 deletions(-) diff --git a/features/messages/impl/src/test/kotlin/io/element/android/features/messages/impl/timeline/factories/event/TimelineItemContentMessageFactoryTest.kt b/features/messages/impl/src/test/kotlin/io/element/android/features/messages/impl/timeline/factories/event/TimelineItemContentMessageFactoryTest.kt index 40c0c7b8ca..291805bb41 100644 --- a/features/messages/impl/src/test/kotlin/io/element/android/features/messages/impl/timeline/factories/event/TimelineItemContentMessageFactoryTest.kt +++ b/features/messages/impl/src/test/kotlin/io/element/android/features/messages/impl/timeline/factories/event/TimelineItemContentMessageFactoryTest.kt @@ -192,10 +192,12 @@ class TimelineItemContentMessageFactoryTest { htmlConverterTransform = { expected } ) val result = sut.create( - content = createMessageContent(type = TextMessageType( - body = "body", - formatted = FormattedBody(MessageFormat.HTML, expected.toString()) - )), + content = createMessageContent( + type = TextMessageType( + body = "body", + formatted = FormattedBody(MessageFormat.HTML, expected.toString()) + ) + ), senderDisplayName = "Bob", eventId = AN_EVENT_ID, ) @@ -208,10 +210,12 @@ class TimelineItemContentMessageFactoryTest { htmlConverterTransform = { it } ) val result = sut.create( - content = createMessageContent(type = TextMessageType( - body = "body", - formatted = FormattedBody(MessageFormat.UNKNOWN, "formatted") - )), + content = createMessageContent( + type = TextMessageType( + body = "body", + formatted = FormattedBody(MessageFormat.UNKNOWN, "formatted") + ) + ), senderDisplayName = "Bob", eventId = AN_EVENT_ID, ) @@ -552,10 +556,12 @@ class TimelineItemContentMessageFactoryTest { fun `test create NoticeMessageType with HTML formatted body`() = runTest { val sut = createTimelineItemContentMessageFactory() val result = sut.create( - content = createMessageContent(type = NoticeMessageType( - body = "body", - formatted = FormattedBody(MessageFormat.HTML, "formatted") - )), + content = createMessageContent( + type = NoticeMessageType( + body = "body", + formatted = FormattedBody(MessageFormat.HTML, "formatted") + ) + ), senderDisplayName = "Bob", eventId = AN_EVENT_ID, ) @@ -584,10 +590,12 @@ class TimelineItemContentMessageFactoryTest { fun `test create EmoteMessageType with HTML formatted body`() = runTest { val sut = createTimelineItemContentMessageFactory() val result = sut.create( - content = createMessageContent(type = EmoteMessageType( - body = "body", - formatted = FormattedBody(MessageFormat.HTML, "formatted") - )), + content = createMessageContent( + type = EmoteMessageType( + body = "body", + formatted = FormattedBody(MessageFormat.HTML, "formatted") + ) + ), senderDisplayName = "Bob", eventId = AN_EVENT_ID, )