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

Commit c90f722

Browse files
author
Alan Shaw
committed
fix: return value from then
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
1 parent 493790a commit c90f722

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/dag/get.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ module.exports = (createCommon, options) => {
127127
const node = result.value
128128

129129
dagPB.util.cid(dagPB.util.serialize(node))
130-
.then((cid) => expect(cid).to.eql(cidPb))
130+
.then(cid => { expect(cid).to.eql(cidPb) })
131131
.then(done)
132132
.catch(done)
133133
})
@@ -151,7 +151,7 @@ module.exports = (createCommon, options) => {
151151
const node = result.value
152152

153153
dagCBOR.util.cid(dagCBOR.util.serialize(node))
154-
.then(cid => expect(cid).to.eql(cidCbor))
154+
.then(cid => { expect(cid).to.eql(cidCbor) })
155155
.then(done)
156156
.catch(done)
157157
})
@@ -186,7 +186,7 @@ module.exports = (createCommon, options) => {
186186
const node = result.value
187187

188188
dagCBOR.util.cid(dagCBOR.util.serialize(node))
189-
.then(cid => expect(cid).to.eql(cidCbor))
189+
.then(cid => { expect(cid).to.eql(cidCbor) })
190190
.then(done)
191191
.catch(done)
192192
})

src/dag/put.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ module.exports = (createCommon, options) => {
8484
expect(cid).to.exist()
8585
expect(CID.isCID(cid)).to.equal(true)
8686
dagCBOR.util.cid(dagCBOR.util.serialize(cborNode))
87-
.then(_cid => expect(cid.buffer).to.eql(_cid.buffer))
87+
.then(_cid => { expect(cid.buffer).to.eql(_cid.buffer) })
8888
.then(done)
8989
.catch(done)
9090
})

0 commit comments

Comments
 (0)