This repository was archived by the owner on Mar 10, 2020. It is now read-only.
File tree 3 files changed +12
-18
lines changed 3 files changed +12
-18
lines changed Original file line number Diff line number Diff line change
1
+ <a name =" 0.34.3 " ></a >
2
+ ## [ 0.34.3] ( https://github.com/ipfs/interface-ipfs-core/compare/v0.34.2...v0.34.3 ) (2017-11-14)
3
+
4
+
5
+
1
6
<a name =" 0.34.2 " ></a >
2
7
## [ 0.34.2] ( https://github.com/ipfs/interface-ipfs-core/compare/v0.34.0...v0.34.2 ) (2017-11-13)
3
8
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " interface-ipfs-core" ,
3
- "version" : " 0.34.2 " ,
3
+ "version" : " 0.34.3 " ,
4
4
"description" : " A test suite and interface you can use to implement a IPFS core interface." ,
5
5
"main" : " src/index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -661,21 +661,13 @@ module.exports = (common) => {
661
661
} )
662
662
} )
663
663
664
- // TODO upgrade
665
664
describe ( '.ls' , ( ) => {
666
665
it ( 'with a base58 encoded string' , ( done ) => {
667
- const hash = 'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP'
668
- ipfs . ls ( hash , ( err , stream ) => {
666
+ const hash = 'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP'
667
+ ipfs . ls ( hash , ( err , files ) => {
669
668
expect ( err ) . to . not . exist ( )
670
-
671
- stream . pipe ( concat ( gotFiles ) )
672
-
673
- function gotFiles ( files ) {
674
- expect ( files ) . to . be . length ( 6 )
675
- // remove content so that we can compare
676
- files . forEach ( ( file ) => delete file . content )
677
-
678
- expect ( files ) . to . eql ( [
669
+ files . forEach ( ( file ) => delete file . content )
670
+ expect ( files ) . to . deep . equal ( [
679
671
{ depth : 1 ,
680
672
name : 'alice.txt' ,
681
673
path : 'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP/alice.txt' ,
@@ -711,11 +703,8 @@ module.exports = (common) => {
711
703
path : 'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP/pp.txt' ,
712
704
size : 4551 ,
713
705
hash : 'QmVwdDCY4SPGVFnNCiZnX5CtzwWDn6kAM98JXzKxE3kCmn' ,
714
- type : 'file'
715
- }
716
- ] )
717
- }
718
- } )
706
+ type : 'file' } ] )
707
+ done ( )
719
708
} )
720
709
} )
721
710
} )
You can’t perform that action at this time.
0 commit comments