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

Commit eb03ac5

Browse files
committed
update add test
1 parent 5df0715 commit eb03ac5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/files.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,15 @@ module.exports = (common) => {
2222
common.teardown(done)
2323
})
2424

25+
// go-ipfs http and js-ipfs core have different responses
2526
describe('.add', () => {
2627
it('add', (done) => {
2728
const buffered = new Buffer('some data')
2829
const rs = new Readable()
2930
rs.push(buffered)
3031
rs.push(null)
3132
const arr = []
32-
const filePair = {path: 'data.txt', stream: rs}
33+
const filePair = {path: 'data.txt', content: rs}
3334
arr.push(filePair)
3435
ipfs.add(arr, (err, res) => {
3536
expect(err).to.not.exist

0 commit comments

Comments
 (0)