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

Commit 216ca17

Browse files
author
Alan Shaw
committed
fix: object tests
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
1 parent 5e94e14 commit 216ca17

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/core/object.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,17 +120,17 @@ describe('object', () => {
120120
nodeAWithLink: ['nodeA', 'nodeB', (res, cb) => {
121121
waterfall([
122122
(done) => ipfs.object.patch.addLink(res.nodeA.cid, {
123-
name: res.nodeB.node.name,
124-
multihash: res.nodeB.cid,
125-
size: res.nodeB.node.size
123+
Name: 'nodeBLink',
124+
Hash: res.nodeB.cid,
125+
Tsize: res.nodeB.node.size
126126
}, done),
127127
(cid, done) => ipfs.object.get(cid, (err, node) => done(err, { node, cid }))
128128
], cb)
129129
}]
130130
}, (err, res) => {
131131
expect(err).to.not.exist()
132132

133-
const link = res.nodeAWithLink.node.links[0]
133+
const link = res.nodeAWithLink.node.Links[0]
134134
ipfs.object.patch.rmLink(res.nodeAWithLink.cid, link, null, (err) => {
135135
expect(err).to.not.exist()
136136
done()

0 commit comments

Comments
 (0)