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

fix: key.rm test #185

Merged
merged 1 commit into from
Dec 18, 2017
Merged

fix: key.rm test #185

merged 1 commit into from
Dec 18, 2017

Conversation

richardschneider
Copy link
Contributor

The key remove test was wrong. This should fix ipfs-inactive/js-ipfs-http-client#641

@@ -133,7 +133,7 @@ module.exports = (common) => {
it('does not contain the removed name', (done) => {
ipfs.key.list((err, res) => {
expect(err).to.not.exist()
const found = res.Keys.filter(k => k.Name === key.name)
const found = res.Keys.filter(k => k.Name === key.Name)
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't disagree with the lowercase .name. You can convert that in js-ipfs-api. It is friendlier to js devs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@diasdavid go-ipfs returns Capitalised names. We must support it as is.

Copy link
Contributor

Choose a reason for hiding this comment

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

Fine then

@daviddias daviddias merged commit 211e2c5 into master Dec 18, 2017
@ghost ghost removed the in progress label Dec 18, 2017
@daviddias daviddias deleted the fix-key-rm branch December 18, 2017 08:15
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