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

Commit e080d6a

Browse files
committed
test: backport of #314
1 parent 7617e55 commit e080d6a

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

js/src/dag.js

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,6 @@ module.exports = (common) => {
7171
}, done)
7272
})
7373

74-
// This works because dag-cbor will just treat pbNode as a regular object
75-
it.skip('dag-pb node with wrong multicodec', (done) => {
76-
ipfs.dag.put(pbNode, 'dag-cbor', 'sha3-512', (err) => {
77-
expect(err).to.exist()
78-
done()
79-
})
80-
})
81-
8274
it('dag-cbor with default hash func (sha2-256)', (done) => {
8375
ipfs.dag.put(cborNode, {
8476
format: 'dag-cbor',
@@ -93,22 +85,6 @@ module.exports = (common) => {
9385
}, done)
9486
})
9587

96-
it('dag-cbor node with wrong multicodec', function (done) {
97-
// This works in go-ipfs because dag-pb will serialize any object. If
98-
// the object has neither a `data` nor `links` field it's serialized
99-
// as an empty object
100-
if (withGo) {
101-
this.skip()
102-
}
103-
ipfs.dag.put(cborNode, {
104-
format: 'dag-pb',
105-
hashAlg: 'sha3-512'
106-
}, (err) => {
107-
expect(err).to.exist()
108-
done()
109-
})
110-
})
111-
11288
it('returns the cid', (done) => {
11389
ipfs.dag.put(cborNode, {
11490
format: 'dag-cbor',

0 commit comments

Comments
 (0)