@@ -13,6 +13,7 @@ describe('multiaddr-to-uri', () => {
1313 [ '/ip4/0.0.7.6/tcp/1234/https' , 'https://0.0.7.6:1234' ] ,
1414 [ '/ip4/0.0.7.6/tcp/1234/tls/http' , 'https://0.0.7.6:1234' ] ,
1515 [ '/ip4/1.2.3.4/tcp/1234/tls/sni/ipfs.io/http' , 'https://ipfs.io' ] ,
16+ [ '/ip4/1.2.3.4/tcp/1234/tls/sni/ipfs.io/http/http-path/foo%2fbar' , 'https://ipfs.io/foo/bar' ] ,
1617 [ '/ip4/0.0.7.6/udp/1234' , 'udp://0.0.7.6:1234' ] ,
1718 [ '/ip6/::/udp/0' , 'udp://[::]:0' ] ,
1819 [ '/dns/a.com/tcp/1234' , 'http://a.com:1234' ] ,
@@ -85,6 +86,10 @@ describe('multiaddr-to-uri', () => {
8586 '/ip4/1.2.3.4/tcp/3456/ipfs/QmcNwyju7SWoizsAuf6kjaaRoxe762ovsT3hz6qt3xxcsK' ,
8687 'tcp://1.2.3.4:3456/p2p/QmcNwyju7SWoizsAuf6kjaaRoxe762ovsT3hz6qt3xxcsK'
8788 ] ,
89+ [
90+ '/ip4/1.2.3.4/tcp/3456/http/http-path/foo%2fbar' ,
91+ 'http://1.2.3.4:3456/foo/bar'
92+ ] ,
8893 [
8994 '/ip4/1.2.3.4/tcp/3456/p2p/QmcNwyju7SWoizsAuf6kjaaRoxe762ovsT3hz6qt3xxcsK' ,
9095 'tcp://1.2.3.4:3456/p2p/QmcNwyju7SWoizsAuf6kjaaRoxe762ovsT3hz6qt3xxcsK'
0 commit comments