Skip to content

Commit 08a57e3

Browse files
committed
test(dag): introduce test that ensure dag.put can be called without options
As discussed in ipfs/js-ipfs#1415 (comment)
1 parent 0a3f5f2 commit 08a57e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

js/src/dag/put.js

+4
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ module.exports = (createCommon, options) => {
113113
})
114114
})
115115

116+
it('should not fail when calling put without options', (done) => {
117+
ipfs.dag.put(pbNode, done)
118+
})
119+
116120
it.skip('should put by passing the cid instead of format and hashAlg', (done) => {})
117121

118122
// TODO it.skip('Promises support', (done) => {})

0 commit comments

Comments
 (0)