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

test: add meta for ipfs.get tests#589

Open
alanshaw wants to merge 1 commit into
masterfrom
test/meta-for-get
Open

test: add meta for ipfs.get tests#589
alanshaw wants to merge 1 commit into
masterfrom
test/meta-for-get

Conversation

@alanshaw

@alanshaw alanshaw commented Feb 9, 2020

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/get.js
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
Copy Markdown
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