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

Added in a test for the opts parameter. #506

Merged
merged 7 commits into from
Jul 26, 2019
Merged

Conversation

obo20
Copy link
Contributor

@obo20 obo20 commented Jul 25, 2019

The opts parameter wasn't correctly passed in when calling ipfs.object.stat. This is the test that makes sure opts is being correctly passed to through the send function to the IPFS daemon.

I've also removed the "base58" encoding that was being passed in for some tests as base58 isn't a valid option for encoding and would provide this error:

Uncaught AssertionError: expected [Error: invalid encoding: base58] to not exist

The opts parameter wasn't correctly passed in when calling ipfs.object.stat. This is the test that makes sure opts is being correctly passed to through the send function to the IPFS daemon. 

I've also removed the "base58" encoding that was being passed in for some tests as base58 isn't a valid option for encoding and would provide this error: 

Uncaught AssertionError: expected [Error: invalid encoding: base58] to not exist
Copy link
Contributor

@alanshaw alanshaw left a comment

Choose a reason for hiding this comment

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

❤️ Looks good, I have just a few tweaks and could you also please fix up the linting errors? https://travis-ci.com/ipfs/interface-js-ipfs-core/builds/120783875 🙏

obo20 and others added 4 commits July 26, 2019 08:31
@obo20
Copy link
Contributor Author

obo20 commented Jul 26, 2019

@alanshaw all linting changes have been made and everything you've commented on should be resolved.

@alanshaw alanshaw merged commit 2893423 into ipfs-inactive:master Jul 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants