From ed4988d8958db829e9c00335570b194edf3330df Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Thu, 18 Jul 2019 16:36:47 +0100 Subject: [PATCH] fix: use the correct option name for files.ls long (#502) License: MIT Signed-off-by: Alan Shaw --- src/files-mfs/ls-pull-stream.js | 4 ++-- src/files-mfs/ls-readable-stream.js | 4 ++-- src/files-mfs/ls.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/files-mfs/ls-pull-stream.js b/src/files-mfs/ls-pull-stream.js index 0da05999..40863414 100644 --- a/src/files-mfs/ls-pull-stream.js +++ b/src/files-mfs/ls-pull-stream.js @@ -71,7 +71,7 @@ module.exports = (createCommon, options) => { }) }) - it('should ls -l directory', (done) => { + it('should ls directory with long option', (done) => { const testDir = `/test-${hat()}` series([ @@ -81,7 +81,7 @@ module.exports = (createCommon, options) => { expect(err).to.not.exist() pull( - ipfs.files.lsPullStream(testDir, { l: true }), + ipfs.files.lsPullStream(testDir, { long: true }), collect((err, entries) => { expect(err).to.not.exist() expect(entries.sort((a, b) => a.name.localeCompare(b.name))).to.eql([ diff --git a/src/files-mfs/ls-readable-stream.js b/src/files-mfs/ls-readable-stream.js index 4a70d641..26037e26 100644 --- a/src/files-mfs/ls-readable-stream.js +++ b/src/files-mfs/ls-readable-stream.js @@ -69,7 +69,7 @@ module.exports = (createCommon, options) => { }) }) - it('should ls -l directory', (done) => { + it('should ls directory with long option', (done) => { const testDir = `/test-${hat()}` series([ @@ -78,7 +78,7 @@ module.exports = (createCommon, options) => { ], (err) => { expect(err).to.not.exist() - const stream = ipfs.files.lsReadableStream(testDir, { l: true }) + const stream = ipfs.files.lsReadableStream(testDir, { long: true }) let entries = [] diff --git a/src/files-mfs/ls.js b/src/files-mfs/ls.js index 57a85da5..756eb9ae 100644 --- a/src/files-mfs/ls.js +++ b/src/files-mfs/ls.js @@ -62,7 +62,7 @@ module.exports = (createCommon, options) => { }) }) - it('should ls -l directory', (done) => { + it('should ls directory with long option', (done) => { const testDir = `/test-${hat()}` series([ @@ -71,7 +71,7 @@ module.exports = (createCommon, options) => { ], (err) => { expect(err).to.not.exist() - ipfs.files.ls(testDir, { l: true }, (err, info) => { + ipfs.files.ls(testDir, { long: true }, (err, info) => { expect(err).to.not.exist() expect(info.sort((a, b) => a.name.localeCompare(b.name))).to.eql([ {