upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tests/ngit_list.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ngit_list.rs')
-rw-r--r--tests/ngit_list.rs15
1 files changed, 10 insertions, 5 deletions
diff --git a/tests/ngit_list.rs b/tests/ngit_list.rs
index 4a3aad5..bb742cf 100644
--- a/tests/ngit_list.rs
+++ b/tests/ngit_list.rs
@@ -49,7 +49,10 @@ async fn prep_proposals_repo_and_repo_with_proposal_pulled_and_checkedout(
49mod cannot_find_repo_event { 49mod cannot_find_repo_event {
50 use super::*; 50 use super::*;
51 mod cli_prompts { 51 mod cli_prompts {
52 use nostr::{ToBech32, nips::nip01::Coordinate}; 52 use nostr::{
53 ToBech32,
54 nips::{nip01::Coordinate, nip19::Nip19Coordinate},
55 };
53 use nostr_sdk::RelayUrl; 56 use nostr_sdk::RelayUrl;
54 57
55 use super::*; 58 use super::*;
@@ -87,10 +90,12 @@ mod cannot_find_repo_event {
87 } 90 }
88 if naddr { 91 if naddr {
89 let mut input = p.expect_input("nostr repository")?; 92 let mut input = p.expect_input("nostr repository")?;
90 let coordinate = Coordinate { 93 let coordinate = Nip19Coordinate {
91 kind: nostr::Kind::GitRepoAnnouncement, 94 coordinate: Coordinate {
92 public_key: TEST_KEY_1_KEYS.public_key(), 95 kind: nostr::Kind::GitRepoAnnouncement,
93 identifier: repo_event.tags.identifier().unwrap().to_string(), 96 public_key: TEST_KEY_1_KEYS.public_key(),
97 identifier: repo_event.tags.identifier().unwrap().to_string(),
98 },
94 relays: vec![RelayUrl::parse("ws://localhost:8056").unwrap()], 99 relays: vec![RelayUrl::parse("ws://localhost:8056").unwrap()],
95 }; 100 };
96 input.succeeds_with(&coordinate.to_bech32()?)?; 101 input.succeeds_with(&coordinate.to_bech32()?)?;