How to use the interface-ipfs-core.files function in interface-ipfs-core

To help you get started, we’ve selected a few interface-ipfs-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ipfs / js-ipfs / test / core / interface / files.js View on Github external
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.files(common)
github ipfs-shipyard / ipfs-postmsg-proxy / test / integration / browser.js View on Github external
tests.bitswap(defaultCommonFactory, { skip: true })

tests.block(defaultCommonFactory)

tests.bootstrap(defaultCommonFactory)

tests.config(defaultCommonFactory)

tests.dag(defaultCommonFactory)

tests.dht(defaultCommonFactory, {
  skip: { reason: 'TODO: DHT is not implemented in js-ipfs yet!' }
})

tests.files(defaultCommonFactory, {
  skip: [
    {
      name: 'should add pull stream (promised)',
      reason: 'https://github.com/ipfs/js-ipfs/issues/1574'
    },
    {
      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'
github ipfs-shipyard / ipfs-postmsg-proxy / test / integration / node.js View on Github external
const common = {
  setup (cb) {
    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)
github ipfs / js-ipfs / test / http-api / interface / files.js View on Github external
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.files(common)
github ipfs / js-ipfs-http-client / test / interface / files.spec.js View on Github external
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.files(common)