import SwiftUI import XCTest @testable import OldFella final class PostTextFacetsTests: XCTestCase { func testNonInteractiveFacetsKeepStylingWithoutLinkDestinations() throws { let text = "Hello 🌍 @alex.example and example.com #swift" let externalURL = try XCTUnwrap(URL(string: "https://example.com")) func facet(_ substring: String, feature: PostFacet.Feature) -> PostFacet { let range = text.range(of: substring)! return PostFacet( byteStart: text[.. PostFacet { let range = text.range(of: substring)! return PostFacet( byteStart: text[.. PostFacet { let range = text.range(of: substring)! return PostFacet( byteStart: text[..