test: pass keypair instead of privkey for test cases
Tests were not building due to recent changes in the Damus source code that replaced privkey with keypair. This patch extends those changes to the test cases, allowing the tests to build and pass. Signed-off-by: Jon Marrs <jdmarrs@gmail.com> Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
committed by
William Casarin
parent
c71b0ee916
commit
dd29e87146
@@ -190,7 +190,7 @@ class damusTests: XCTestCase {
|
||||
func testParseMentionOnlyText() {
|
||||
let tags = [["e", "event_id"]]
|
||||
let ev = NostrEvent(content: "there is no mention here", keypair: test_keypair, tags: tags)!
|
||||
let parsed = parse_note_content(content: .init(note: ev, privkey: test_keypair.privkey)).blocks
|
||||
let parsed = parse_note_content(content: .init(note: ev, keypair: test_keypair)).blocks
|
||||
|
||||
XCTAssertNotNil(parsed)
|
||||
XCTAssertEqual(parsed.count, 1)
|
||||
|
||||
Reference in New Issue
Block a user