Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 5e37a54

Browse files
victorbdaviddias
authored andcommitted
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 3f3ce8a commit 5e37a54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/bitswap.spec.js

+1-1
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)