ipfs-repo
Advanced tools
Comparing version
{ | ||
"name": "ipfs-repo", | ||
"version": "0.3.0", | ||
"version": "0.3.2", | ||
"description": "IPFS Repo implementation", | ||
@@ -13,3 +13,3 @@ "main": "src/index.js", | ||
"type": "git", | ||
"url": "https://github.com/diasdavid/js-ipfs-repo.git" | ||
"url": "https://github.com/ipfs/js-ipfs-repo.git" | ||
}, | ||
@@ -23,3 +23,3 @@ "keywords": [ | ||
], | ||
"homepage": "https://github.com/ipfs/js-ipfs-record", | ||
"homepage": "https://github.com/ipfs/js-ipfs-repo", | ||
"devDependencies": { | ||
@@ -26,0 +26,0 @@ "bl": "^1.0.0", |
@@ -165,2 +165,3 @@ /* globals describe, before, after, it*/ | ||
const buf = new Buffer(base58.decode(baseFileHash)) | ||
repo.datastore.exists(buf, (err, exists) => { | ||
@@ -173,2 +174,12 @@ expect(err).to.not.exist | ||
it('check for non existent block', done => { | ||
const buf = new Buffer('random buffer') | ||
repo.datastore.exists(buf, (err, exists) => { | ||
expect(err).to.not.exist | ||
expect(exists).to.equal(false) | ||
done() | ||
}) | ||
}) | ||
it('remove a block', done => { | ||
@@ -175,0 +186,0 @@ const buf = new Buffer(base58.decode(baseFileHash)) |
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
107618
0.23%404
2.02%1
-50%