upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-08-01 14:56:41 +0100
committerDanConwayDev <DanConwayDev@protonmail.com>2024-08-01 14:56:41 +0100
commit85eb1ccadbce711956bd573e73fe2c4dfb0a5855 (patch)
tree57e854df9b2727ea4b9942a70065fbad6c385c2a /src
parentffbc7843aa5dfe419076b146439ad03ee4f51916 (diff)
test(remote): fix url `from_naddr`
as rust-nostr doesn't add trailing slash to relays
Diffstat (limited to 'src')
-rw-r--r--src/git_remote_helper.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/git_remote_helper.rs b/src/git_remote_helper.rs
index 4c6b9fc..6dc00cb 100644
--- a/src/git_remote_helper.rs
+++ b/src/git_remote_helper.rs
@@ -592,7 +592,15 @@ mod tests {
592 nostr_git_url_to_repo_coordinates( 592 nostr_git_url_to_repo_coordinates(
593 "nostr://naddr1qqzxuemfwsqs6amnwvaz7tmwdaejumr0dspzpgqgmmc409hm4xsdd74sf68a2uyf9pwel4g9mfdg8l5244t6x4jdqvzqqqrhnym0k2qj" 593 "nostr://naddr1qqzxuemfwsqs6amnwvaz7tmwdaejumr0dspzpgqgmmc409hm4xsdd74sf68a2uyf9pwel4g9mfdg8l5244t6x4jdqvzqqqrhnym0k2qj"
594 )?, 594 )?,
595 HashSet::from([get_model_coordinate(true)]), 595 HashSet::from([Coordinate {
596 identifier: "ngit".to_string(),
597 public_key: PublicKey::parse(
598 "npub15qydau2hjma6ngxkl2cyar74wzyjshvl65za5k5rl69264ar2exs5cyejr",
599 )
600 .unwrap(),
601 kind: nostr_sdk::Kind::GitRepoAnnouncement,
602 relays: vec!["wss://nos.lol".to_string()], // wont add the slash
603 }]),
596 ); 604 );
597 Ok(()) 605 Ok(())
598 } 606 }