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

Commit

Permalink
fix(bitswap): 0.4.14 returns empty array instead of null
Browse files Browse the repository at this point in the history
Since 0.4.14, go-ipfs now returns an empty array rather than null.

This should be considered a breaking change for consumers of this
library.
  • Loading branch information
victorb authored and daviddias committed Mar 27, 2018
1 parent 3f3ce8a commit 5e37a54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/bitswap.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('.bitswap', function () {
ipfs.bitswap.wantlist((err, res) => {
expect(err).to.not.exist()
expect(res).to.have.to.eql({
Keys: null
Keys: []
})
done()
})
Expand Down

0 comments on commit 5e37a54

Please sign in to comment.