Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
},
{
name: 'lsReadableStream',
reason: 'LITE: Node.js streams not supported'
},
{
name: 'lsPullStream',
reason: 'LITE: not implemented yet'
},
{
name: 'flush',
reason: 'LITE: not implemented yet'
}]
})
tests.key(defaultCommon, {
// skip: [
// // key.export
// {
// name: 'export',
// reason: 'TODO not implemented in go-ipfs yet'
// },
// // key.import
// {
// name: 'import',
// reason: 'TODO not implemented in go-ipfs yet'
// }
// ]
skip: { reason: 'LITE: not implemented yet' }
})
tests.miscellaneous(defaultCommon, {
{
name: 'should export a chunk of a file',
reason: 'TODO not implemented in go-ipfs yet'
},
{
name: 'should export a chunk of a file in a Pull Stream',
reason: 'TODO not implemented in go-ipfs yet'
},
{
name: 'should export a chunk of a file in a Readable Stream',
reason: 'TODO not implemented in go-ipfs yet'
}
]
})
tests.key(commonFactory, {
skip: [
// key.export
{
name: 'export',
reason: 'TODO not implemented in go-ipfs yet'
},
// key.import
{
name: 'import',
reason: 'TODO not implemented in go-ipfs yet'
}
]
})
tests.miscellaneous(commonFactory)
if (err) {
return cb(err)
}
nodes.push(_ipfsd)
cb(null, IPFSApi(_ipfsd.apiAddr))
})
}
})
},
teardown: function (callback) {
parallel(nodes.map((node) => (cb) => node.stop(cb)), callback)
}
}
test.key(common)
}
})
tests.filesRegular(commonFactory, {
skip: isNode ? null : [{
name: 'addFromStream',
reason: 'Not designed to run in the browser'
}, {
name: 'addFromFs',
reason: 'Not designed to run in the browser'
}]
})
tests.filesMFS(commonFactory)
tests.key(commonFactory)
tests.miscellaneous(commonFactory)
tests.name(createFactory(merge(commonOptions, {
ipfsOptions: {
pass: 'ipfs-is-awesome-software',
offline: true
}
}), overrides))
tests.namePubsub(createFactory(merge(commonOptions, {
ipfsOptions: {
EXPERIMENTAL: {
ipnsPubsub: true
}
}
}
})
tests.filesRegular(commonFactory, {
skip: isNode ? null : [{
name: 'addFromStream',
reason: 'Not designed to run in the browser'
}, {
name: 'addFromFs',
reason: 'Not designed to run in the browser'
}]
})
tests.filesMFS(commonFactory)
tests.key(commonFactory)
tests.miscellaneous(commonFactory)
tests.name(createFactory(merge(commonOptions, {
ipfsOptions: {
offline: true
}
}), overrides))
tests.namePubsub(createFactory(merge(commonOptions, {
ipfsOptions: {
EXPERIMENTAL: {
ipnsPubsub: true
}
}
}), overrides))
if (err) {
return cb(err)
}
nodes.push(_ipfsd)
cb(null, _ipfsd.api)
})
}
})
},
teardown: function (callback) {
parallel(nodes.map((node) => (cb) => node.stop(cb)), callback)
}
}
test.key(common)
factory = new IpfsFactory(factoryOpts)
cb(null, factory)
},
teardown (cb) {
factory.dismantle(cb)
}
}
test.block(common)
test.bootstrap(common)
test.config(common)
test.dag(common)
test.dht(common)
test.files(common)
test.filesMFS(common)
test.key(common)
test.miscellaneous(common)
test.object(common)
test.pin(common)
test.ping(common)
test.pubsub(common)
test.repo(common)
test.stats(common)
test.swarm(common)
if (err) {
return cb(err)
}
nodes.push(_ipfsd)
cb(null, _ipfsd.api)
})
}
})
},
teardown: function (callback) {
parallel(nodes.map((node) => (cb) => node.stop(cb)), callback)
}
}
test.key(common)
{
name: 'should stat file',
reason: 'https://github.com/ipfs/interface-ipfs-core/pull/365'
},
{
name: 'should stat dir',
reason: 'https://github.com/ipfs/interface-ipfs-core/pull/365'
},
{
name: 'should stat outside of mfs',
reason: 'https://github.com/ipfs/interface-ipfs-core/pull/365'
}
]
})
tests.key(defaultCommonFactory)
tests.ls(defaultCommonFactory)
tests.miscellaneous(defaultCommonFactory, {
skip: [
{
name: 'should resolve an IPNS DNS link',
reason: 'TODO IPNS not implemented yet'
},
{
name: 'should resolve IPNS link recursively',
reason: 'TODO IPNS not implemented yet'
}
]
})