From 7937accfb39e6a57edd3ae00a4e15a622c5173c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20D=E2=80=99Aquino?= Date: Mon, 9 Mar 2026 17:09:23 -0700 Subject: [PATCH] Fix build errors in PostView tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changelog-None Signed-off-by: Daniel D’Aquino --- damusTests/PostViewTests.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/damusTests/PostViewTests.swift b/damusTests/PostViewTests.swift index 79415230..5e569150 100644 --- a/damusTests/PostViewTests.swift +++ b/damusTests/PostViewTests.swift @@ -324,7 +324,7 @@ final class PostViewTests: XCTestCase { let post = NostrPost(content: "gm") let clientTag = ["client", "Damus"] let event = post.to_event(keypair: test_keypair_full, clientTag: clientTag) - XCTAssertTrue(event?.tags.contains(where: { $0 == clientTag }) ?? false) + XCTAssertTrue(event?.tags.contains(where: { $0.strings() == clientTag }) ?? false) } /// Tests that existing client tags are not duplicated. @@ -333,9 +333,9 @@ final class PostViewTests: XCTestCase { let post = NostrPost(content: "gm", tags: existingTags) let clientTag = ["client", "Damus"] let event = post.to_event(keypair: test_keypair_full, clientTag: clientTag) - let clientTagCount = event?.tags.filter { $0.first == "client" }.count + let clientTagCount = event?.tags.filter { $0[0].matches_str("client") }.count XCTAssertEqual(clientTagCount, 1) - XCTAssertEqual(event?.tags.first(where: { $0.first == "client" }), existingTags.first) + XCTAssertEqual(event?.tags.first(where: { $0[0].matches_str("client") })?.strings(), existingTags.first) } }