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

Commit 4c25a4e

Browse files
committed
fix: use ipfs.files.add
License: MIT Signed-off-by: Alan Shaw <[email protected]>
1 parent 071df1b commit 4c25a4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/src/miscellaneous/resolve.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ module.exports = (createCommon, options) => {
3535
it('should resolve an IPFS hash', (done) => {
3636
const content = loadFixture('js/test/fixtures/testfile.txt', 'interface-ipfs-core')
3737

38-
ipfs.add(content, (err, res) => {
38+
ipfs.files.add(content, (err, res) => {
3939
expect(err).to.not.exist()
4040
expect(isIpfs.cid(res[0].hash)).to.be.true()
4141

@@ -52,7 +52,7 @@ module.exports = (createCommon, options) => {
5252
const path = '/path/to/testfile.txt'
5353
const content = loadFixture('js/test/fixtures/testfile.txt', 'interface-ipfs-core')
5454

55-
ipfs.add([{ path, content }], { wrapWithDirectory: true }, (err, res) => {
55+
ipfs.files.add([{ path, content }], { wrapWithDirectory: true }, (err, res) => {
5656
expect(err).to.not.exist()
5757

5858
const rootHash = res.find(r => r.path === '').hash

0 commit comments

Comments
 (0)