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

Commit

Permalink
chore: fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Apr 5, 2018
1 parent 8f75d0a commit 6e68a26
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion js/src/dht.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ module.exports = (common) => {
(cb) => nodeE.swarm.connect(nodeB.peerId.addresses[0], cb),
(cb) => nodeD.swarm.connect(nodeC.peerId.addresses[0], cb),
(cb) => nodeE.swarm.connect(nodeC.peerId.addresses[0], cb),
(cb) => nodeD.swarm.connect(nodeE.peerId.addresses[0], cb),
(cb) => nodeD.swarm.connect(nodeE.peerId.addresses[0], cb)
], done)
})
})
Expand Down
16 changes: 8 additions & 8 deletions js/src/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,16 +265,16 @@ module.exports = (common) => {

it('wrapWithDirectory', (done) => {
return ipfs.files.add({ path: 'testfile.txt', content: smallFile.data }, { wrapWithDirectory: true }, (err, filesAdded) => {
expect(err).to.not.exist();
expect(filesAdded).to.have.length(2);
const file = filesAdded[0];
expect(err).to.not.exist()
expect(filesAdded).to.have.length(2)
const file = filesAdded[0]
const wrapped = filesAdded[1]
expect(file.hash).to.equal(smallFile.cid)
expect(file.path).to.equal('testfile.txt')
expect(wrapped.path).to.equal(wrapDirectory.cid);
done();
});
});
expect(wrapped.path).to.equal(wrapDirectory.cid)
done()
})
})

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

it('with a cid object', (done) => {
const cid = new CID(smallFile.cid)

ipfs.files.cat(cid, (err, data) => {
expect(err).to.not.exist()
expect(data.toString()).to.contain('Plz add me!')
Expand Down
4 changes: 2 additions & 2 deletions js/src/pubsub.js
Original file line number Diff line number Diff line change
Expand Up @@ -593,8 +593,8 @@ module.exports = (common) => {
})

afterEach(() => {
ipfs1.pubsub.unsubscribe(topic, sub1)
ipfs2.pubsub.unsubscribe(topic, sub2)
ipfs1.pubsub.unsubscribe(topic, sub1)
ipfs2.pubsub.unsubscribe(topic, sub2)
})

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

0 comments on commit 6e68a26

Please sign in to comment.