Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 8a1901c

Browse files
authored
Merge branch 'master' into revamp-stream-apis
2 parents 5a16909 + a0b1ce4 commit 8a1901c

File tree

3 files changed

+12
-18
lines changed

3 files changed

+12
-18
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
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+
16
<a name="0.34.2"></a>
27
## [0.34.2](https://github.com/ipfs/interface-ipfs-core/compare/v0.34.0...v0.34.2) (2017-11-13)
38

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "interface-ipfs-core",
3-
"version": "0.34.2",
3+
"version": "0.34.3",
44
"description": "A test suite and interface you can use to implement a IPFS core interface.",
55
"main": "src/index.js",
66
"scripts": {

src/files.js

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -661,21 +661,13 @@ module.exports = (common) => {
661661
})
662662
})
663663

664-
// TODO upgrade
665664
describe('.ls', () => {
666665
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) => {
669668
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([
679671
{ depth: 1,
680672
name: 'alice.txt',
681673
path: 'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP/alice.txt',
@@ -711,11 +703,8 @@ module.exports = (common) => {
711703
path: 'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP/pp.txt',
712704
size: 4551,
713705
hash: 'QmVwdDCY4SPGVFnNCiZnX5CtzwWDn6kAM98JXzKxE3kCmn',
714-
type: 'file'
715-
}
716-
])
717-
}
718-
})
706+
type: 'file' } ])
707+
done()
719708
})
720709
})
721710
})

0 commit comments

Comments
 (0)