From 3b4498276273583e3a85d8bbe8ed9f082c782a9e Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Wed, 23 May 2018 17:13:44 +0100 Subject: [PATCH] fix: files ls --- js/src/files-mfs.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/src/files-mfs.js b/js/src/files-mfs.js index 2d8a0722..21acdbe8 100644 --- a/js/src/files-mfs.js +++ b/js/src/files-mfs.js @@ -406,8 +406,8 @@ module.exports = (common) => { ipfs.files.ls('/test', (err, info) => { expect(err).to.not.exist() expect(info).to.eql([ - { name: 'b', type: 0, size: 0, hash: '' }, - { name: 'lv1', type: 0, size: 0, hash: '' } + { name: 'b', type: 'file', size: 0, hash: '' }, + { name: 'lv1', type: 'file', size: 0, hash: '' } ]) done() }) @@ -424,13 +424,13 @@ module.exports = (common) => { expect(info).to.eql([ { name: 'b', - type: 0, + type: 'file', size: 13, hash: 'QmcZojhwragQr5qhTeFAmELik623Z21e3jBTpJXoQ9si1T' }, { name: 'lv1', - type: 1, + type: 'directory', size: 0, hash: 'QmaSPtNHYKPjNjQnYX9pdu5ocpKUQEL3itSz8LuZcoW6J5' }