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

Commit fcc834c

Browse files
committed
fix: linting errors
License: MIT Signed-off-by: Alan Shaw <[email protected]>
1 parent 7737546 commit fcc834c

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

js/src/bitswap.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-env mocha */
12
'use strict'
23

34
const chai = require('chai')
@@ -60,7 +61,7 @@ module.exports = (common) => {
6061
it('.wantlist', (done) => {
6162
ipfsB.bitswap.wantlist((err, list) => {
6263
expect(err).to.not.exist()
63-
expect(list.Keys).to.have.length(1);
64+
expect(list.Keys).to.have.length(1)
6465
expect(list.Keys[0]['/']).to.equal(key)
6566
done()
6667
})
@@ -79,9 +80,9 @@ module.exports = (common) => {
7980
this.skip()
8081
}
8182
ipfsB.bitswap.unwant(key, (err) => {
82-
expect(err).to.not.exist();
83+
expect(err).to.not.exist()
8384
ipfsB.bitswap.wantlist((err, list) => {
84-
expect(err).to.not.exist();
85+
expect(err).to.not.exist()
8586
expect(list.Keys).to.be.empty()
8687
done()
8788
})
@@ -119,8 +120,8 @@ module.exports = (common) => {
119120
it('.stat gives error while offline', (done) => {
120121
ipfs.bitswap.stat((err, stats) => {
121122
expect(err).to.exist()
122-
//When run against core we get our expected error, when run
123-
//as part of the http tests we get a connection refused
123+
// When run against core we get our expected error, when run
124+
// as part of the http tests we get a connection refused
124125
if (err.code !== 'ECONNREFUSED') {
125126
expect(err).to.match(/online mode/)
126127
}
@@ -132,8 +133,8 @@ module.exports = (common) => {
132133
it('.wantlist gives error if offline', (done) => {
133134
ipfs.bitswap.wantlist((err, list) => {
134135
expect(err).to.exist()
135-
//When run against core we get our expected error, when run
136-
//as part of the http tests we get a connection refused
136+
// When run against core we get our expected error, when run
137+
// as part of the http tests we get a connection refused
137138
if (err.code !== 'ECONNREFUSED') {
138139
expect(err).to.match(/online mode/)
139140
}
@@ -146,8 +147,8 @@ module.exports = (common) => {
146147
const key = 'QmUBdnXXPyoDFXj3Hj39dNJ5VkN3QFRskXxcGaYFBB8CNR'
147148
ipfs.bitswap.unwant(key, (err) => {
148149
expect(err).to.exist()
149-
//When run against core we get our expected error, when run
150-
//as part of the http tests we get a connection refused
150+
// When run against core we get our expected error, when run
151+
// as part of the http tests we get a connection refused
151152
if (err.code !== 'ECONNREFUSED') {
152153
expect(err).to.match(/online mode/)
153154
}

0 commit comments

Comments
 (0)