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

test: pin.ls with multiple CIDs #563

Merged
merged 2 commits into from
Nov 27, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/pin/ls.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,5 +140,12 @@ module.exports = (createCommon, options) => {
hash: fixtures.files[0].cid
}])
})

it('should list pins for multiple CIDs', async () => {
const pinset = await ipfs.pin.ls([fixtures.files[0].cid, fixtures.files[1].cid])
const cids = pinset.map(({ hash }) => hash)
expect(cids).to.include(fixtures.files[0].cid)
expect(cids).to.include(fixtures.files[1].cid)
})
})
}