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

Commit e002f87

Browse files
committed
fix(bitswap): 0.4.14 returns empty array instead of null
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.
1 parent 1a0d6a9 commit e002f87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/bitswap.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('.bitswap', function () {
3333
ipfs.bitswap.wantlist((err, res) => {
3434
expect(err).to.not.exist()
3535
expect(res).to.have.to.eql({
36-
Keys: null
36+
Keys: []
3737
})
3838
done()
3939
})

0 commit comments

Comments
 (0)