import XCTest
@testable import FchatiApp

final class ChatMessageBubbleTests: XCTestCase {
    func testMessageKeepsMarkdownBodyForRendering() {
        let message = ChatMessage(
            id: "message-id",
            from: "peer-id",
            fromName: "Alex",
            body: "Hello, **world**",
            sentAt: Date(),
            attachment: nil,
            isRead: false
        )

        XCTAssertEqual(message.body, "Hello, **world**")
        XCTAssertNotNil(try? AttributedString(markdown: message.body))
    }
}
