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

test: add meta for ipfs.get tests #589

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

alanshaw
Copy link
Contributor

@alanshaw alanshaw commented Feb 9, 2020

No description provided.

const res = await all(ipfs.get(cid))

expect(res).to.have.length(1)
expect(res).to.have.nested.property('0.mtime.secs').that.deep.equals(mtime.secs)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you add an extra test where the mtime passed to ipfs.add contains a fractional nanosecond and asserts that nsecs is generated properly.

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