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

Commit

Permalink
fix: fix broken stat tests (#236)
Browse files Browse the repository at this point in the history
Tests broke due to c4934ca [1].

If promises are used, you needn't pass `done` as parameter of
the callback in.

[1]: c4934ca#diff-0a6449ecfa8b9e3d807f53dde24eca71R66
  • Loading branch information
vmx authored and daviddias committed Mar 13, 2018
1 parent 81f0696 commit fcb8341
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js/src/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -919,8 +919,8 @@ module.exports = (common) => {
})
})

describe('.lsPullStream', function (done) {
before((done) => {
describe('.lsPullStream', () => {
before(function (done) {
// TODO: https://github.com/ipfs/js-ipfs-api/issues/339
if (!isNode) { this.skip() }

Expand Down
2 changes: 1 addition & 1 deletion js/src/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ module.exports = (common) => {
})
})

it('.bw Promise', function (done) {
it('.bw Promise', function () {
if (!withGo) {
console.log('Not supported in js-ipfs yet')
this.skip()
Expand Down

0 comments on commit fcb8341

Please sign in to comment.