From e080d6a6cc98f913b75945c6c41bbb0d400c173c Mon Sep 17 00:00:00 2001 From: achingbrain Date: Fri, 29 Jun 2018 16:03:50 +0100 Subject: [PATCH] test: backport of ipfs/interface-ipfs-core#314 --- js/src/dag.js | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/js/src/dag.js b/js/src/dag.js index d337bd04..3a5350d9 100644 --- a/js/src/dag.js +++ b/js/src/dag.js @@ -71,14 +71,6 @@ module.exports = (common) => { }, done) }) - // This works because dag-cbor will just treat pbNode as a regular object - it.skip('dag-pb node with wrong multicodec', (done) => { - ipfs.dag.put(pbNode, 'dag-cbor', 'sha3-512', (err) => { - expect(err).to.exist() - done() - }) - }) - it('dag-cbor with default hash func (sha2-256)', (done) => { ipfs.dag.put(cborNode, { format: 'dag-cbor', @@ -93,22 +85,6 @@ module.exports = (common) => { }, done) }) - it('dag-cbor node with wrong multicodec', function (done) { - // This works in go-ipfs because dag-pb will serialize any object. If - // the object has neither a `data` nor `links` field it's serialized - // as an empty object - if (withGo) { - this.skip() - } - ipfs.dag.put(cborNode, { - format: 'dag-pb', - hashAlg: 'sha3-512' - }, (err) => { - expect(err).to.exist() - done() - }) - }) - it('returns the cid', (done) => { ipfs.dag.put(cborNode, { format: 'dag-cbor',