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

Commit 78b49bf

Browse files
author
Alan Shaw
committed
fix: object test property fixes
License: MIT Signed-off-by: Alan Shaw <[email protected]>
1 parent b641a70 commit 78b49bf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/object/get.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ module.exports = (createCommon, options) => {
304304
expect(err).to.not.exist()
305305
// because js-ipfs-api can't infer if the
306306
// returned Data is Buffer or String
307-
if (typeof node.data === 'string') {
307+
if (typeof node.Data === 'string') {
308308
node = DAGNode.create(Buffer.from(node.Data), node.Links, node.size)
309309
}
310310
node1b = node

src/object/links.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ module.exports = (createCommon, options) => {
183183
expect(err).to.not.exist()
184184
const obj = {
185185
some: 'data',
186-
mylink: { '/': hashes[0] },
186+
mylink: new CID(hashes[0]),
187187
myobj: {
188188
anotherLink: new CID(hashes[1])
189189
}

0 commit comments

Comments
 (0)