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

Commit f6e5f55

Browse files
hacdiasdaviddias
authored andcommitted
feat: allow stats tests to run on js-ipfs (#216)
1 parent 6e72124 commit f6e5f55

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

js/src/stats.js

-20
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,13 @@ module.exports = (common) => {
3939
})
4040

4141
it('.bitswap', (done) => {
42-
if (!withGo) {
43-
console.log('Not supported in js-ipfs yet')
44-
return done()
45-
}
46-
4742
ipfs.stats.bitswap((err, res) => {
4843
statsTests.expectIsBitswap(err, res)
4944
done()
5045
})
5146
})
5247

5348
it('.bitswap Promise', () => {
54-
if (!withGo) {
55-
console.log('Not supported in js-ipfs yet')
56-
return
57-
}
58-
5949
return ipfs.stats.bitswap().then((res) => {
6050
statsTests.expectIsBitswap(null, res)
6151
})
@@ -117,23 +107,13 @@ module.exports = (common) => {
117107
})
118108

119109
it('.repo', (done) => {
120-
if (!withGo) {
121-
console.log('Not supported in js-ipfs yet')
122-
return done()
123-
}
124-
125110
ipfs.stats.repo((err, res) => {
126111
statsTests.expectIsRepo(err, res)
127112
done()
128113
})
129114
})
130115

131116
it('.repo Promise', () => {
132-
if (!withGo) {
133-
console.log('Not supported in js-ipfs yet')
134-
return
135-
}
136-
137117
return ipfs.stats.repo().then((res) => {
138118
statsTests.expectIsRepo(null, res)
139119
})

0 commit comments

Comments
 (0)