From 7964f401a5c2645ef742cf5b66d6fbafe73a3152 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Thu, 21 Jun 2018 22:59:02 +0100 Subject: [PATCH 1/3] test: add test for retrieving an empty block License: MIT Signed-off-by: Alan Shaw --- js/src/block.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/js/src/block.js b/js/src/block.js index d0cf8af68..38219db5b 100644 --- a/js/src/block.js +++ b/js/src/block.js @@ -123,6 +123,22 @@ module.exports = (common) => { }) }) + it('should get an empty block', (done) => { + ipfs.block.put(Buffer.alloc(0), { + format: 'dag-pb', + mhtype: 'sha2-256', + version: 0 + }, (err, block) => { + expect(err).to.not.exist() + + ipfs.block.get(block.cid, (err, block) => { + expect(err).to.not.exist() + expect(block.data).to.eql(Buffer.alloc(0)) + done() + }) + }) + }) + // TODO it.skip('Promises support', (done) => {}) }) From a77b28b9fbc679279589d739b9363635a4d53fdf Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Fri, 22 Jun 2018 09:06:34 +0100 Subject: [PATCH 2/3] chore: update contributors From f238e9f0ba8132dba51d3bac1eb491701f505ccd Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Fri, 22 Jun 2018 09:06:35 +0100 Subject: [PATCH 3/3] chore: release version v0.69.0 --- CHANGELOG.md | 5 +++++ package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 98ada02ae..0b2220a08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ + +# [0.69.0](https://github.com/ipfs/interface-ipfs-core/compare/v0.68.2...v0.69.0) (2018-06-22) + + + ## [0.68.2](https://github.com/ipfs/interface-ipfs-core/compare/v0.68.1...v0.68.2) (2018-06-19) diff --git a/package.json b/package.json index 2ac06d07b..e15a6e3fe 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "interface-ipfs-core", - "version": "0.68.2", + "version": "0.69.0", "description": "A test suite and interface you can use to implement a IPFS core interface.", "leadMaintainer": "Alan Shaw ", "main": "js/src/index.js",