@@ -549,16 +549,16 @@ describe('variants', () => {
549
549
expect ( addr . toString ( ) ) . to . equal ( str )
550
550
} )
551
551
552
- it ( 'ip4 + tcp + http + retrieval ' , ( ) => {
553
- const str = '/ip4/127.0.0.1/tcp/8000/http/retrieval /http'
552
+ it ( 'ip4 + tcp + http + tag ' , ( ) => {
553
+ const str = '/ip4/127.0.0.1/tcp/8000/http/tag /http'
554
554
const addr = multiaddr ( str )
555
555
expect ( addr ) . to . have . property ( 'bytes' )
556
556
expect ( addr . toString ( ) ) . to . equal ( str )
557
557
} )
558
558
559
- it ( 'ws + p2p + retrieval tuple' , ( ) => {
559
+ it ( 'ws + p2p + tag tuple' , ( ) => {
560
560
const str =
561
- '/ip4/127.0.0.1/tcp/9090/ws/p2p/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSupNKC/retrieval /bitswap/retrieval /graphsync'
561
+ '/ip4/127.0.0.1/tcp/9090/ws/p2p/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSupNKC/tag /bitswap/tag /graphsync'
562
562
const addr = multiaddr ( str )
563
563
expect ( addr ) . to . have . property ( 'bytes' )
564
564
expect ( addr . toString ( ) ) . to . equal ( str )
@@ -747,16 +747,16 @@ describe('helpers', () => {
747
747
] )
748
748
} )
749
749
750
- it ( 'returns the tuples for retrieval ' , ( ) => {
751
- expect ( multiaddr ( '/ip4/127.0.0.1/tcp/8000/http/retrieval /http' ) . tuples ( ) )
750
+ it ( 'returns the tuples for tag ' , ( ) => {
751
+ expect ( multiaddr ( '/ip4/127.0.0.1/tcp/8000/http/tag /http' ) . tuples ( ) )
752
752
. to . eql ( [
753
753
[ 4 , Uint8Array . from ( [ 127 , 0 , 0 , 1 ] ) ] ,
754
754
[ 6 , Uint8Array . from ( [ 31 , 64 ] ) ] ,
755
755
[ 480 ] ,
756
756
[ 384 , Uint8Array . from ( [ 4 , 104 , 116 , 116 , 112 ] ) ]
757
757
] )
758
758
759
- expect ( multiaddr ( '/ip4/127.0.0.1/tcp/9090/ws/p2p/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSupNKC/retrieval /bitswap/retrieval /graphsync' ) . tuples ( ) )
759
+ expect ( multiaddr ( '/ip4/127.0.0.1/tcp/9090/ws/p2p/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSupNKC/tag /bitswap/tag /graphsync' ) . tuples ( ) )
760
760
. to . eql ( [
761
761
[ 4 , Uint8Array . from ( [ 127 , 0 , 0 , 1 ] ) ] ,
762
762
[ 6 , Uint8Array . from ( [ 35 , 130 ] ) ] ,
@@ -785,16 +785,16 @@ describe('helpers', () => {
785
785
] )
786
786
} )
787
787
788
- it ( 'returns the string parts for retrieval ' , ( ) => {
789
- expect ( multiaddr ( '/ip4/127.0.0.1/tcp/8000/http/retrieval /http' ) . stringTuples ( ) )
788
+ it ( 'returns the string parts for tag ' , ( ) => {
789
+ expect ( multiaddr ( '/ip4/127.0.0.1/tcp/8000/http/tag /http' ) . stringTuples ( ) )
790
790
. to . eql ( [
791
791
[ 4 , '127.0.0.1' ] ,
792
792
[ 6 , '8000' ] ,
793
793
[ 480 ] ,
794
794
[ 384 , 'http' ]
795
795
] )
796
796
797
- expect ( multiaddr ( '/ip4/127.0.0.1/tcp/9090/ws/p2p/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSupNKC/retrieval /bitswap/retrieval /graphsync' ) . stringTuples ( ) )
797
+ expect ( multiaddr ( '/ip4/127.0.0.1/tcp/9090/ws/p2p/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSupNKC/tag /bitswap/tag /graphsync' ) . stringTuples ( ) )
798
798
. to . eql ( [
799
799
[ 4 , '127.0.0.1' ] ,
800
800
[ 6 , '9090' ] ,
0 commit comments