@@ -387,7 +387,7 @@ module.exports = (common) => {
387
387
var paths = files . map ( ( file ) => {
388
388
return file . path
389
389
} )
390
- expect ( paths ) . to . deep . equal ( [
390
+ expect ( paths ) . to . include . members ( [
391
391
'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP' ,
392
392
'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP/alice.txt' ,
393
393
'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP/empty-folder' ,
@@ -401,20 +401,16 @@ module.exports = (common) => {
401
401
] )
402
402
403
403
// Check contents
404
- var contents = files . map ( ( file ) => {
405
- return file . content ? file . content : null
404
+ var contents = files . map ( function ( file ) {
405
+ return file . content ? file . content . toString ( ) : null
406
406
} )
407
- expect ( contents ) . to . deep . equal ( [
408
- null ,
409
- directoryContent [ 'alice.txt' ] ,
410
- null ,
411
- null ,
412
- null ,
413
- directoryContent [ 'files/hello.txt' ] ,
414
- directoryContent [ 'files/ipfs.txt' ] ,
415
- directoryContent [ 'holmes.txt' ] ,
416
- directoryContent [ 'jungle.txt' ] ,
417
- directoryContent [ 'pp.txt' ]
407
+ expect ( contents ) . to . include . members ( [
408
+ directoryContent [ 'alice.txt' ] . toString ( ) ,
409
+ directoryContent [ 'files/hello.txt' ] . toString ( ) ,
410
+ directoryContent [ 'files/ipfs.txt' ] . toString ( ) ,
411
+ directoryContent [ 'holmes.txt' ] . toString ( ) ,
412
+ directoryContent [ 'jungle.txt' ] . toString ( ) ,
413
+ directoryContent [ 'pp.txt' ] . toString ( )
418
414
] )
419
415
done ( )
420
416
} ) )
0 commit comments