Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix(cli): use right argument for cli .cat
Browse files Browse the repository at this point in the history
Add tests for making sure .cat shows right output and fix that test by
using the right argument from cli. Ref: issue #476
  • Loading branch information
victorb committed Sep 10, 2016
1 parent 636307f commit dd3fe88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/commands/files/cat.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
builder: {},

handler (argv) {
const path = argv.ipfsPath
const path = argv['ipfs-path']
utils.getIPFS((err, ipfs) => {
if (err) {
throw err
Expand Down
1 change: 1 addition & 0 deletions test/cli/test-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ describe('files', () => {
.run((err, stdout, exitcode) => {
expect(err).to.not.exist
expect(exitcode).to.equal(0)
expect(stdout[0]).to.equal('hello world')
done()
})
})
Expand Down

0 comments on commit dd3fe88

Please sign in to comment.