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

feat: test ipns resolve of peerid as cid #553

Merged
merged 1 commit into from
Nov 6, 2019
Merged

Conversation

lidel
Copy link
Contributor

@lidel lidel commented Nov 5, 2019

@@ -45,6 +46,20 @@ module.exports = (createCommon, options) => {
.to.eq(`/ipfs/${path}`)
})

it('should resolve a record from peerid as cidv1 in base32', async function () {
this.timeout(20 * 1000)
const [{ path }] = await ipfs.add(Buffer.from('should resolve a record from cidv1b32'))
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be better to use hash here?

Copy link
Contributor

Choose a reason for hiding this comment

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

...all the others are using path, lets leave it for another day!

@@ -45,6 +46,20 @@ module.exports = (createCommon, options) => {
.to.eq(`/ipfs/${path}`)
})

it('should resolve a record from peerid as cidv1 in base32', async function () {
this.timeout(20 * 1000)
const [{ path }] = await ipfs.add(Buffer.from('should resolve a record from cidv1b32'))
Copy link
Contributor

Choose a reason for hiding this comment

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

...all the others are using path, lets leave it for another day!

@alanshaw alanshaw merged commit 9193957 into master Nov 6, 2019
@alanshaw alanshaw deleted the feat/peerid-as-cid branch November 6, 2019 12:05
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.

None yet

3 participants