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

Commit a12c343

Browse files
author
Alan Shaw
committed
fix: adding links with new IPLD formats
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
1 parent 50b51bb commit a12c343

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/files-regular/refs-tests.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
const mapSeries = require('async/mapSeries')
55
const { getDescribe, getIt, expect } = require('../utils/mocha')
66
const loadFixture = require('aegir/fixtures')
7+
const CID = require('cids')
78

89
module.exports = (createCommon, suiteName, ipfsRefs, options) => {
910
const describe = getDescribe(options)
@@ -365,7 +366,7 @@ function loadDagContent (ipfs, node, callback) {
365366
putLinks: (links, cb) => {
366367
const obj = {}
367368
for (const { name, cid } of links) {
368-
obj[name] = { '/': cid }
369+
obj[name] = new CID(cid)
369370
}
370371
ipfs.dag.put(obj, cb)
371372
}

0 commit comments

Comments
 (0)