damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit e8d63768c152c00da0f87efed77d22081caca283
parent 1f648057d5da6c3c6f06f955f88516ebbe4b800a
Author: William Casarin <jb55@jb55.com>
Date:   Tue, 11 Apr 2023 10:27:11 -0700

Fix note mention test

Diffstat:
MdamusTests/ReplyTests.swift | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/damusTests/ReplyTests.swift b/damusTests/ReplyTests.swift @@ -259,11 +259,11 @@ class ReplyTests: XCTestCase { let post = NostrPost(content: content, references: [reply_ref]) let ev = post_to_event(post: post, privkey: evid, pubkey: pk) - XCTAssertEqual(ev.tags.count, 3) + XCTAssertEqual(ev.tags.count, 1) XCTAssertEqual(blocks.count, 5) XCTAssertEqual(blocks[1].is_ref, ReferencedId(ref_id: hex_note_id, relay_id: nil, key: "e")) XCTAssertEqual(blocks[3].is_ref, ReferencedId(ref_id: hex_note_id, relay_id: nil, key: "e")) - XCTAssertEqual(ev.content, "this is a #[1] #[2] mention") + XCTAssertEqual(ev.content, "this is a nostr:\(pk) nostr:\(pk) mention") } func testNsecMention() throws {