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

Commit 17f95fb

Browse files
committed
fix(block): testing
1 parent 2ae09fb commit 17f95fb

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ipfs-api
1010
[![Travis CI](https://travis-ci.org/ipfs/js-ipfs-api.svg?branch=master)](https://travis-ci.org/ipfs/js-ipfs-api)
1111
[![Circle CI](https://circleci.com/gh/ipfs/js-ipfs-api.svg?style=svg)](https://circleci.com/gh/ipfs/js-ipfs-api)
1212

13-
> 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.
13+
> 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.
1414
1515
![](https://github.com/ipfs/interface-ipfs-core/raw/master/img/badge.png)
1616

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"chai": "^3.5.0",
4848
"gulp": "^3.9.1",
4949
"hapi": "^14.1.0",
50-
"interface-ipfs-core": "^0.12.0",
50+
"interface-ipfs-core": "^0.13.0",
5151
"ipfsd-ctl": "^0.14.0",
5252
"pre-commit": "^1.1.3",
5353
"socket.io": "^1.4.8",

src/api/util/url-add.js

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ module.exports = (send) => {
3232
if (err) {
3333
return callback(err)
3434
}
35-
console.log('got page back')
3635

3736
sendWithTransform({
3837
path: 'add',

test/interface-ipfs-core/block.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ const common = {
1717
}
1818
}
1919

20-
// test.block(common)
20+
test.block(common)

test/ipfs-api/util.spec.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ describe('.util', () => {
1212
if (!isNode) {
1313
return
1414
}
15+
1516
let ipfs
1617
let fc
1718

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

3233
it('.streamAdd', (done) => {
33-
const rs = fs.createReadStream(path.join(__dirname, '/../data/testfile.txt'))
34+
const tfpath = path.join(__dirname, '/../data/testfile.txt')
35+
const rs = fs.createReadStream(tfpath)
3436
rs.path = '' // clean the path for testing purposes
3537

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

0 commit comments

Comments
 (0)