Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
feat: add addFromStream method
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Alan Shaw <[email protected]>
  • Loading branch information
Alan Shaw committed Dec 12, 2018
1 parent f88735b commit e44bab7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/core/components/files-regular/add-from-stream.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict'

module.exports = self => require('./add')(self)
1 change: 1 addition & 0 deletions src/core/components/files-regular/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

module.exports = self => ({
add: require('./add')(self),
addFromStream: require('./add-from-stream')(self),
addFromURL: require('./add-from-url')(self),
addPullStream: require('./add-pull-stream')(self),
addReadableStream: require('./add-readable-stream')(self),
Expand Down
4 changes: 0 additions & 4 deletions test/core/interface.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,7 @@ describe('interface-ipfs-core tests', () => {
})

tests.filesRegular(defaultCommonFactory, {
only: ['addFromUrl'],
skip: isNode ? [{
name: 'addFromStream',
reason: 'TODO: not implemented yet'
}, {
name: 'addFromFs',
reason: 'TODO: not implemented yet'
}] : [{
Expand Down

0 comments on commit e44bab7

Please sign in to comment.