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

Allow stats.bitswap and stats.repo tests to work on JS-IPFS #216

Merged
merged 1 commit into from
Feb 15, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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