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

Commit 792464e

Browse files
committed
Let bandwidth stats tests run on JS-IPFS
1 parent ec16016 commit 792464e

File tree

1 file changed

+3
-23
lines changed

1 file changed

+3
-23
lines changed

js/src/stats.js

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -52,34 +52,19 @@ module.exports = (common) => {
5252
})
5353

5454
it('.bw', function (done) {
55-
if (!withGo) {
56-
console.log('Not supported in js-ipfs yet')
57-
this.skip()
58-
}
59-
6055
ipfs.stats.bw((err, res) => {
6156
statsTests.expectIsBandwidth(err, res)
6257
done()
6358
})
6459
})
6560

66-
it('.bw Promise', function () {
67-
if (!withGo) {
68-
console.log('Not supported in js-ipfs yet')
69-
this.skip()
70-
}
71-
61+
it('.bw Promise', () => {
7262
return ipfs.stats.bw().then((res) => {
7363
statsTests.expectIsBandwidth(null, res)
7464
})
7565
})
7666

77-
it('.bwReadableStream', function (done) {
78-
if (!withGo) {
79-
console.log('Not supported in js-ipfs yet')
80-
this.skip()
81-
}
82-
67+
it('.bwReadableStream', (done) => {
8368
const stream = ipfs.stats.bwReadableStream()
8469

8570
stream.once('data', (data) => {
@@ -89,12 +74,7 @@ module.exports = (common) => {
8974
})
9075
})
9176

92-
it('.bwPullStream', function (done) {
93-
if (!withGo) {
94-
console.log('Not supported in js-ipfs yet')
95-
this.skip()
96-
}
97-
77+
it('.bwPullStream', (done) => {
9878
const stream = ipfs.stats.bwPullStream()
9979

10080
pull(

0 commit comments

Comments
 (0)