From 5e37a540909e737d9a88a299502c33a77aadfe75 Mon Sep 17 00:00:00 2001 From: victorbjelkholm Date: Fri, 16 Mar 2018 15:24:17 +0100 Subject: [PATCH] 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. --- test/bitswap.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/bitswap.spec.js b/test/bitswap.spec.js index 2a69a1b06..b878cf67c 100644 --- a/test/bitswap.spec.js +++ b/test/bitswap.spec.js @@ -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() })