diff options
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)); |