Skip to content

Commit

Permalink
fix: use the correct option name for files.ls long (ipfs#502)
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Alan Shaw <alan@tableflip.io>
  • Loading branch information
alanshaw committed Jul 18, 2019
1 parent 97ed794 commit ed4988d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/files-mfs/ls-pull-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand All @@ -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([
Expand Down
4 changes: 2 additions & 2 deletions src/files-mfs/ls-readable-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand All @@ -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 = []

Expand Down
4 changes: 2 additions & 2 deletions src/files-mfs/ls.js
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand All @@ -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([
{
Expand Down

0 comments on commit ed4988d

Please sign in to comment.