diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-09 19:58:41 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-09 19:58:41 +0000 |
| commit | b28a356cb41077ccee12a9c52f4ef2054e76cac6 (patch) | |
| tree | 2a0867f1ab0216e86efa062aef90b2b8077e6fb9 /src/http | |
| parent | 6dd9fcd5392891b0ddb7894e2c5cb40450eae00e (diff) | |
chore: cargo fmt
Diffstat (limited to 'src/http')
| -rw-r--r-- | src/http/nip11.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/nip11.rs b/src/http/nip11.rs index cf31cf3..de714cb 100644 --- a/src/http/nip11.rs +++ b/src/http/nip11.rs | |||
| @@ -102,12 +102,12 @@ mod tests { | |||
| 102 | 102 | ||
| 103 | assert_eq!(doc.name, "Test Relay"); | 103 | assert_eq!(doc.name, "Test Relay"); |
| 104 | assert_eq!(doc.description, "A test relay"); | 104 | assert_eq!(doc.description, "A test relay"); |
| 105 | 105 | ||
| 106 | // Verify pubkey is present and is a valid npub | 106 | // Verify pubkey is present and is a valid npub |
| 107 | assert!(doc.pubkey.is_some()); | 107 | assert!(doc.pubkey.is_some()); |
| 108 | let pubkey = doc.pubkey.unwrap(); | 108 | let pubkey = doc.pubkey.unwrap(); |
| 109 | assert!(pubkey.starts_with("npub1")); | 109 | assert!(pubkey.starts_with("npub1")); |
| 110 | 110 | ||
| 111 | assert!(doc.supported_nips.contains(&1)); | 111 | assert!(doc.supported_nips.contains(&1)); |
| 112 | assert!(doc.supported_nips.contains(&11)); | 112 | assert!(doc.supported_nips.contains(&11)); |
| 113 | assert!(doc.supported_nips.contains(&34)); | 113 | assert!(doc.supported_nips.contains(&34)); |