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

Commit

Permalink
feat: allow stats tests to run on js-ipfs (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias authored and daviddias committed Feb 15, 2018
1 parent 6e72124 commit f6e5f55
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions js/src/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,13 @@ module.exports = (common) => {
})

it('.bitswap', (done) => {
if (!withGo) {
console.log('Not supported in js-ipfs yet')
return done()
}

ipfs.stats.bitswap((err, res) => {
statsTests.expectIsBitswap(err, res)
done()
})
})

it('.bitswap Promise', () => {
if (!withGo) {
console.log('Not supported in js-ipfs yet')
return
}

return ipfs.stats.bitswap().then((res) => {
statsTests.expectIsBitswap(null, res)
})
Expand Down Expand Up @@ -117,23 +107,13 @@ module.exports = (common) => {
})

it('.repo', (done) => {
if (!withGo) {
console.log('Not supported in js-ipfs yet')
return done()
}

ipfs.stats.repo((err, res) => {
statsTests.expectIsRepo(err, res)
done()
})
})

it('.repo Promise', () => {
if (!withGo) {
console.log('Not supported in js-ipfs yet')
return
}

return ipfs.stats.repo().then((res) => {
statsTests.expectIsRepo(null, res)
})
Expand Down

0 comments on commit f6e5f55

Please sign in to comment.