@@ -38,9 +38,11 @@ export function testLs (factory: Factory<KuboNode>, options: MochaConfig): void
3838 it ( 'should list all recursive pins' , async ( ) => {
3939 const pinset = await all ( ipfs . pin . ls ( { type : 'recursive' } ) )
4040
41+ console . log ( pinset )
42+
4143 expect ( pinset ) . to . deep . include ( {
4244 type : 'recursive' ,
43- cid : fixtures . files [ 0 ] . cid
45+ cid : fixtures . files [ 0 ] . cid ,
4446 } )
4547 expect ( pinset ) . to . deep . include ( {
4648 type : 'recursive' ,
@@ -182,6 +184,9 @@ export function testLs (factory: Factory<KuboNode>, options: MochaConfig): void
182184 const cids = pinset . map ( p => p . cid . toString ( ) )
183185 expect ( cids ) . to . include ( fixtures . files [ 0 ] . cid . toString ( ) )
184186 expect ( cids ) . to . include ( fixtures . files [ 1 ] . cid . toString ( ) )
187+ const names = pinset . map ( p => p . name )
188+ expect ( names ) . to . include ( fixtures . files [ 0 ] . pinName )
189+ expect ( names ) . to . include ( fixtures . files [ 1 ] . pinName )
185190 } )
186191
187192 it ( 'should list specific named pin' , async ( ) => {
@@ -191,6 +196,8 @@ export function testLs (factory: Factory<KuboNode>, options: MochaConfig): void
191196 expect ( pinset ) . to . have . lengthOf ( 1 )
192197 const cids = pinset . map ( p => p . cid . toString ( ) )
193198 expect ( cids ) . to . include ( fixtures . files [ 0 ] . cid . toString ( ) )
199+ const names = pinset . map ( p => p . name )
200+ expect ( names ) . to . include ( fixtures . files [ 0 ] . pinName )
194201 } )
195202
196203 it ( 'should throw error for invalid non-string pin type option' , ( ) => {
0 commit comments