Created
November 7, 2024 23:52
-
-
Save tom-sherman/dd8f3b3e77211487fdf71b0e3ace723b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❯ lib/navigation.test.ts (35) | |
❯ valid input (33) | |
✓ navigates "valid-handle.com" to "/at/valid-handle.com" | |
✓ navigates "at://valid-handle.com" to "/at/valid-handle.com" | |
× navigates "valid-handle.com/collection" to "/at/valid-handle.com/collection" | |
✓ navigates "at://valid-handle.com/collection" to "/at/valid-handle.com/collection" | |
× navigates "valid-handle.com/collection/rkey" to "/at/valid-handle.com/collection/rkey" | |
✓ navigates "at://valid-handle.com/collection/rkey" to "/at/valid-handle.com/collection/rkey" | |
× navigates "valid-handle.com/collection/rkey" to "/at/valid-handle.com/collection/rkey" | |
✓ navigates "at://valid-handle.com/collection/rkey" to "/at/valid-handle.com/collection/rkey" | |
✓ navigates "did:plc:hello" to "/at/did:plc:hello" | |
✓ navigates "at://did:plc:hello" to "/at/did:plc:hello" | |
✓ navigates "did:plc:hello/collection" to "/at/did:plc:hello/collection" | |
✓ navigates "at://did:plc:hello/collection" to "/at/did:plc:hello/collection" | |
✓ navigates "did:plc:hello/collection/rkey" to "/at/did:plc:hello/collection/rkey" | |
✓ navigates "at://did:plc:hello/collection/rkey" to "/at/did:plc:hello/collection/rkey" | |
✓ navigates "did:plc:hello/collection/rkey" to "/at/did:plc:hello/collection/rkey" | |
✓ navigates "at://did:plc:hello/collection/rkey" to "/at/did:plc:hello/collection/rkey" | |
✓ navigates "did:web:hello" to "/at/did:web:hello" | |
✓ navigates "at://did:web:hello" to "/at/did:web:hello" | |
✓ navigates "did:web:hello/collection" to "/at/did:web:hello/collection" | |
✓ navigates "at://did:web:hello/collection" to "/at/did:web:hello/collection" | |
✓ navigates "did:web:hello/collection/rkey" to "/at/did:web:hello/collection/rkey" | |
✓ navigates "at://did:web:hello/collection/rkey" to "/at/did:web:hello/collection/rkey" | |
✓ navigates "did:web:hello/collection/rkey" to "/at/did:web:hello/collection/rkey" | |
✓ navigates "at://did:web:hello/collection/rkey" to "/at/did:web:hello/collection/rkey" | |
✓ navigates "mañana.com" to "/at/xn--maana-pta.com" | |
× navigates "at://mañana.com" to "/at/xn--maana-pta.com" | |
× navigates "mañana.com/collection" to "/at/xn--maana-pta.com/collection" | |
× navigates "at://mañana.com/collection" to "/at/xn--maana-pta.com/collection" | |
× navigates "mañana.com/collection/rkey" to "/at/xn--maana-pta.com/collection/rkey" | |
× navigates "at://mañana.com/collection/rkey" to "/at/xn--maana-pta.com/collection/rkey" | |
× navigates "mañana.com/collection/rkey" to "/at/xn--maana-pta.com/collection/rkey" | |
× navigates "at://mañana.com/collection/rkey" to "/at/xn--maana-pta.com/collection/rkey" | |
✓ navigates "@valid-handle.com" to "/at/valid-handle.com" | |
✓ invalid input (2) | |
✓ invalid input "@" returns error "Invalid URI: @" | |
✓ invalid input "@invalid" returns error "Invalid URI: @invalid" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment