Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit cb764c6

Browse files
committed
chore: update test per review feedback
1 parent 44dc52f commit cb764c6

File tree

1 file changed

+2
-5
lines changed
  • packages/interface-ipfs-core/src/object

1 file changed

+2
-5
lines changed

packages/interface-ipfs-core/src/object/links.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,8 @@ module.exports = (common, options) => {
5959
const node1bCid = await ipfs.object.put(node1b)
6060

6161
const links = await ipfs.object.links(node1bCid)
62-
expect(node1b.Links[0]).to.containSubset({
63-
Hash: links[0].Hash,
64-
Tsize: links[0].Tsize,
65-
Name: links[0].Name
66-
})
62+
expect(links).to.be.an('array').that.has.property('length', 1)
63+
expect(node1b.Links).to.be.deep.equal(links)
6764
})
6865

6966
it('should get links by base58 encoded multihash', async () => {

0 commit comments

Comments
 (0)