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

Commit

Permalink
fix(block): testing
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Aug 17, 2016
1 parent 2ae09fb commit 17f95fb
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ipfs-api
[![Travis CI](https://travis-ci.org/ipfs/js-ipfs-api.svg?branch=master)](https://travis-ci.org/ipfs/js-ipfs-api)
[![Circle CI](https://circleci.com/gh/ipfs/js-ipfs-api.svg?style=svg)](https://circleci.com/gh/ipfs/js-ipfs-api)

> A client library for the IPFS HTTP API, implemented in JavaScript. This client library implements the [interface-ipfs-core](https://github.com/ipfs/interface-ipfs-core) enabling applications to change between a embebed js-ipfs node and any remove IPFS node without having to change the code. In addition, this client library implements a set of utility functions.
> A client library for the IPFS HTTP API, implemented in JavaScript. This client library implements the [interface-ipfs-core](https://github.com/ipfs/interface-ipfs-core) enabling applications to change between a embebed js-ipfs node and any remote IPFS node without having to change the code. In addition, this client library implements a set of utility functions.
![](https://github.com/ipfs/interface-ipfs-core/raw/master/img/badge.png)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"chai": "^3.5.0",
"gulp": "^3.9.1",
"hapi": "^14.1.0",
"interface-ipfs-core": "^0.12.0",
"interface-ipfs-core": "^0.13.0",
"ipfsd-ctl": "^0.14.0",
"pre-commit": "^1.1.3",
"socket.io": "^1.4.8",
Expand Down
1 change: 0 additions & 1 deletion src/api/util/url-add.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ module.exports = (send) => {
if (err) {
return callback(err)
}
console.log('got page back')

sendWithTransform({
path: 'add',
Expand Down
2 changes: 1 addition & 1 deletion test/interface-ipfs-core/block.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ const common = {
}
}

// test.block(common)
test.block(common)
4 changes: 3 additions & 1 deletion test/ipfs-api/util.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ describe('.util', () => {
if (!isNode) {
return
}

let ipfs
let fc

Expand All @@ -30,7 +31,8 @@ describe('.util', () => {
})

it('.streamAdd', (done) => {
const rs = fs.createReadStream(path.join(__dirname, '/../data/testfile.txt'))
const tfpath = path.join(__dirname, '/../data/testfile.txt')
const rs = fs.createReadStream(tfpath)
rs.path = '' // clean the path for testing purposes

ipfs.util.streamAdd(rs, (err, result) => {
Expand Down

0 comments on commit 17f95fb

Please sign in to comment.