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

Commit 5beee15

Browse files
authored
Merge pull request #42 from ipfs/fix/files-add
fix files.add promise test
2 parents 52ca639 + bbca09a commit 5beee15

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/files.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -228,14 +228,15 @@ module.exports = (common) => {
228228

229229
describe('promise API', (done) => {
230230
describe('.add', () => {
231-
it('buffer', () => {
231+
it('buffer', (done) => {
232232
return ipfs.files.add(smallFile)
233233
.then((res) => {
234234
const added = res[0] != null ? res[0] : res
235235
const mh = bs58.encode(added.node.multihash()).toString()
236236
expect(mh).to.equal('Qma4hjFTnCasJ8PVp3mZbZK5g2vGDT4LByLJ7m8ciyRFZP')
237237
expect(added.path).to.equal(mh)
238238
expect(added.node.links).to.have.length(0)
239+
done()
239240
})
240241
.catch((err) => {
241242
expect(err).to.not.exist

0 commit comments

Comments
 (0)