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

fix: use the correct option name for files.ls long #502

Merged
merged 1 commit into from
Jul 18, 2019
Merged
Show file tree
Hide file tree
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
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