@@ -549,16 +549,16 @@ describe('variants', () => {
549549 expect ( addr . toString ( ) ) . to . equal ( str )
550550 } )
551551
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'
554554 const addr = multiaddr ( str )
555555 expect ( addr ) . to . have . property ( 'bytes' )
556556 expect ( addr . toString ( ) ) . to . equal ( str )
557557 } )
558558
559- it ( 'ws + p2p + retrieval tuple' , ( ) => {
559+ it ( 'ws + p2p + tag tuple' , ( ) => {
560560 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'
562562 const addr = multiaddr ( str )
563563 expect ( addr ) . to . have . property ( 'bytes' )
564564 expect ( addr . toString ( ) ) . to . equal ( str )
@@ -747,16 +747,16 @@ describe('helpers', () => {
747747 ] )
748748 } )
749749
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 ( ) )
752752 . to . eql ( [
753753 [ 4 , Uint8Array . from ( [ 127 , 0 , 0 , 1 ] ) ] ,
754754 [ 6 , Uint8Array . from ( [ 31 , 64 ] ) ] ,
755755 [ 480 ] ,
756756 [ 384 , Uint8Array . from ( [ 4 , 104 , 116 , 116 , 112 ] ) ]
757757 ] )
758758
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 ( ) )
760760 . to . eql ( [
761761 [ 4 , Uint8Array . from ( [ 127 , 0 , 0 , 1 ] ) ] ,
762762 [ 6 , Uint8Array . from ( [ 35 , 130 ] ) ] ,
@@ -785,16 +785,16 @@ describe('helpers', () => {
785785 ] )
786786 } )
787787
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 ( ) )
790790 . to . eql ( [
791791 [ 4 , '127.0.0.1' ] ,
792792 [ 6 , '8000' ] ,
793793 [ 480 ] ,
794794 [ 384 , 'http' ]
795795 ] )
796796
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 ( ) )
798798 . to . eql ( [
799799 [ 4 , '127.0.0.1' ] ,
800800 [ 6 , '9090' ] ,
0 commit comments