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

Commit 6e68a26

Browse files
committed
chore: fix linting
1 parent 8f75d0a commit 6e68a26

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

js/src/dht.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ module.exports = (common) => {
6565
(cb) => nodeE.swarm.connect(nodeB.peerId.addresses[0], cb),
6666
(cb) => nodeD.swarm.connect(nodeC.peerId.addresses[0], cb),
6767
(cb) => nodeE.swarm.connect(nodeC.peerId.addresses[0], cb),
68-
(cb) => nodeD.swarm.connect(nodeE.peerId.addresses[0], cb),
68+
(cb) => nodeD.swarm.connect(nodeE.peerId.addresses[0], cb)
6969
], done)
7070
})
7171
})

js/src/files.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -265,16 +265,16 @@ module.exports = (common) => {
265265

266266
it('wrapWithDirectory', (done) => {
267267
return ipfs.files.add({ path: 'testfile.txt', content: smallFile.data }, { wrapWithDirectory: true }, (err, filesAdded) => {
268-
expect(err).to.not.exist();
269-
expect(filesAdded).to.have.length(2);
270-
const file = filesAdded[0];
268+
expect(err).to.not.exist()
269+
expect(filesAdded).to.have.length(2)
270+
const file = filesAdded[0]
271271
const wrapped = filesAdded[1]
272272
expect(file.hash).to.equal(smallFile.cid)
273273
expect(file.path).to.equal('testfile.txt')
274-
expect(wrapped.path).to.equal(wrapDirectory.cid);
275-
done();
276-
});
277-
});
274+
expect(wrapped.path).to.equal(wrapDirectory.cid)
275+
done()
276+
})
277+
})
278278

279279
it('Promise test', () => {
280280
return ipfs.files.add(smallFile.data)
@@ -397,7 +397,7 @@ module.exports = (common) => {
397397

398398
it('with a cid object', (done) => {
399399
const cid = new CID(smallFile.cid)
400-
400+
401401
ipfs.files.cat(cid, (err, data) => {
402402
expect(err).to.not.exist()
403403
expect(data.toString()).to.contain('Plz add me!')

js/src/pubsub.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,8 +593,8 @@ module.exports = (common) => {
593593
})
594594

595595
afterEach(() => {
596-
ipfs1.pubsub.unsubscribe(topic, sub1)
597-
ipfs2.pubsub.unsubscribe(topic, sub2)
596+
ipfs1.pubsub.unsubscribe(topic, sub1)
597+
ipfs2.pubsub.unsubscribe(topic, sub2)
598598
})
599599

600600
it('send/receive 10k messages', function (done) {

0 commit comments

Comments
 (0)