From 973cdc946f0836063f2e72c232fcf8d4f7bed982 Mon Sep 17 00:00:00 2001 From: achingbrain Date: Tue, 17 Jul 2018 15:35:47 +0100 Subject: [PATCH] test: enable test stat with ipfs paths Not sure why this is still skipped. --- js/src/files/stat.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/src/files/stat.js b/js/src/files/stat.js index 4d59e9e91..5bf061d91 100644 --- a/js/src/files/stat.js +++ b/js/src/files/stat.js @@ -132,15 +132,14 @@ module.exports = (createCommon, options) => { }) }) - // TODO: (achingbrain) - Not yet supported in js-ipfs or go-ipfs yet') - it.skip('should stat outside of mfs', function (done) { + it('should stat outside of mfs', function (done) { ipfs.files.stat('/ipfs/' + fixtures.smallFile.cid, (err, stat) => { expect(err).to.not.exist() expect(stat).to.eql({ type: 'file', blocks: 0, size: 12, - hash: 'Qma4hjFTnCasJ8PVp3mZbZK5g2vGDT4LByLJ7m8ciyRFZP', + hash: fixtures.smallFile.cid, cumulativeSize: 20, withLocality: false, local: undefined,