Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

test: enable test stat with ipfs paths #328

Merged
merged 1 commit into from
Jul 17, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions js/src/files/stat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down