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

fix(cli): use right argument for cli .cat #477

Merged
merged 1 commit into from
Sep 11, 2016
Merged

Conversation

victorb
Copy link
Member

@victorb victorb commented Sep 10, 2016

Add tests for making sure .cat shows right output and fix that test by
using the right argument from cli. Ref: issue #476

@@ -9,14 +9,15 @@ const _ = require('lodash')

describe('files', () => {
const env = _.clone(process.env)
env.IPFS_PATH = repoPath
process.env.IPFS_PATH = repoPath
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be modified. As env is passed in below into the command and this would modify the whole process.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're absolutely right, silly me. Fixed!

Add tests for making sure .cat shows right output and fix that test by
using the right argument from cli. Ref: issue #476
@daviddias daviddias merged commit 1c2ca57 into master Sep 11, 2016
@daviddias daviddias deleted the issue-476-no-cat-output branch September 11, 2016 23:03
@daviddias
Copy link
Member

👍 @victorbjelkholm

MicrowaveDev pushed a commit to galtproject/js-ipfs that referenced this pull request May 22, 2020
ipfs#477)

closes ipfs#296

License: MIT
Signed-off-by: Prabhakar-Poudel <yuvrajzohan@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants