This repository was archived by the owner on Mar 10, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +22
-24
lines changed Expand file tree Collapse file tree 2 files changed +22
-24
lines changed Original file line number Diff line number Diff line change @@ -476,5 +476,27 @@ module.exports = (common) => {
476476 } )
477477 } )
478478 } )
479+
480+ // TODO (achingbrain) - Not yet supported in js-ipfs or go-ipfs yet')
481+ describe . skip ( '.stat' , ( ) => {
482+ before ( ( done ) => ipfs . files . add ( smallFile . data , done ) )
483+
484+ it . skip ( 'stat outside of mfs' , function ( done ) {
485+ ipfs . files . stat ( '/ipfs/' + smallFile . cid , ( err , stat ) => {
486+ expect ( err ) . to . not . exist ( )
487+ expect ( stat ) . to . eql ( {
488+ type : 'file' ,
489+ blocks : 0 ,
490+ size : 12 ,
491+ hash : 'Qma4hjFTnCasJ8PVp3mZbZK5g2vGDT4LByLJ7m8ciyRFZP' ,
492+ cumulativeSize : 20 ,
493+ withLocality : false ,
494+ local : undefined ,
495+ sizeLocal : undefined
496+ } )
497+ done ( )
498+ } )
499+ } )
500+ } )
479501 } )
480502}
Original file line number Diff line number Diff line change @@ -1171,29 +1171,5 @@ module.exports = (common) => {
11711171 )
11721172 } )
11731173 } )
1174-
1175- describe ( '.stat' , ( ) => {
1176- before ( ( done ) => ipfs . files . add ( smallFile . data , done ) )
1177-
1178- it ( 'stat outside of mfs' , function ( done ) {
1179- console . log ( 'Not supported in js-ipfs or go-ipfs yet' )
1180- this . skip ( )
1181-
1182- ipfs . files . stat ( '/ipfs/' + smallFile . cid , ( err , stat ) => {
1183- expect ( err ) . to . not . exist ( )
1184- expect ( stat ) . to . eql ( {
1185- type : 'file' ,
1186- blocks : 0 ,
1187- size : 12 ,
1188- hash : 'Qma4hjFTnCasJ8PVp3mZbZK5g2vGDT4LByLJ7m8ciyRFZP' ,
1189- cumulativeSize : 20 ,
1190- withLocality : false ,
1191- local : undefined ,
1192- sizeLocal : undefined
1193- } )
1194- done ( )
1195- } )
1196- } )
1197- } )
11981174 } )
11991175}
You can’t perform that action at this time.
0 commit comments