From 7ed2b58e875f67555dcda28cc8133b297a4b7e43 Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Tue, 17 Jul 2018 19:18:34 +0100 Subject: [PATCH] test: enable test stat with ipfs paths (#328) 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 4d59e9e9..5bf061d9 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,