Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.
Merged
Changes from all commits
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
10 changes: 4 additions & 6 deletions js/src/object.js
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,6 @@ module.exports = (common) => {
let testNodeMultihash
let testNodeWithLinkMultihash
let testLink
let testLinkPlainObject

const obj = {
Data: Buffer.from('patch test object'),
Expand All @@ -699,7 +698,6 @@ module.exports = (common) => {
let node1a
let node1b
let node2
let node3

series([
(cb) => {
Expand Down Expand Up @@ -928,10 +926,10 @@ module.exports = (common) => {
}

before(() => {
return ipfs.object.put(obj, (err, node) => {
expect(err).to.not.exist()
testNodeMultihash = node.multihash
})
return ipfs.object.put(obj)
.then((node) => {
testNodeMultihash = node.multihash
})
})

it('.addLink', () => {
Expand Down