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

Commit f5b9e63

Browse files
committed
update test and readme
1 parent adaa0a6 commit f5b9e63

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

src/exporter.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -74,24 +74,6 @@ function Exporter (hash, dagService, options) {
7474
callback()
7575
return
7676
})
77-
/* async.forEachSeries(node.links, (link, callback) => {
78-
dagService.get(link.hash, (err, res) => {
79-
if (err) {
80-
callback(err)
81-
}
82-
var unmarshaledData = UnixFS.unmarshal(res.data)
83-
rs.push(unmarshaledData.data)
84-
callback()
85-
})
86-
}, (err) => {
87-
if (err) {
88-
callback()
89-
return
90-
}
91-
rs.push(null)
92-
callback()
93-
return
94-
})*/
9577
}
9678
this.push({ stream: rs, path: name })
9779
callback()

test/test-exporter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ module.exports = function (repo) {
9595
const testExport = exporter(hash, ds)
9696
testExport.on('error', (err) => {
9797
expect(err).to.exist
98+
expect(err.code).to.equal('ENOENT')
9899
done()
99100
})
100101
})

0 commit comments

Comments
 (0)