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

Commit eb9e785

Browse files
committed
chore: prefer arrow functions
License: MIT Signed-off-by: Alan Shaw <[email protected]>
1 parent 0f61c26 commit eb9e785

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

js/src/dag/put.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ module.exports = (createCommon, options) => {
8787
}, done)
8888
})
8989

90-
it('should not put dag-cbor node with wrong multicodec', function (done) {
90+
it('should not put dag-cbor node with wrong multicodec', (done) => {
9191
ipfs.dag.put(cborNode, {
9292
format: 'dag-pb',
9393
hashAlg: 'sha3-512'

js/src/dag/tree.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/* eslint-env mocha */
22
'use strict'
33

4-
const { series, eachSeries } = require('async')
4+
const series = require('async/series')
5+
const eachSeries = require('async/eachSeries')
56
const dagPB = require('ipld-dag-pb')
67
const dagCBOR = require('ipld-dag-cbor')
78
const { spawnNodeWithId } = require('../utils/spawn')

js/src/dht/findpeer.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ module.exports = (createCommon, options) => {
4545
})
4646
})
4747

48-
it('should fail to find other peer if peer does not exist', function (done) {
48+
it('should fail to find other peer if peer does not exist', (done) => {
4949
nodeA.dht.findpeer('Qmd7qZS4T7xXtsNFdRoK1trfMs5zU94EpokQ9WFtxdPxsZ', (err, peer) => {
5050
expect(err).to.not.exist()
51-
expect(peer).to.be.equal(null)
51+
expect(peer).to.not.exist()
5252
done()
5353
})
5454
})

js/src/dht/findprovs.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ module.exports = (createCommon, options) => {
1212
const common = createCommon()
1313

1414
describe('.dht.findprovs', function () {
15-
this.timeout(80 * 1000)
16-
1715
let nodeA
1816
let nodeB
1917

@@ -39,6 +37,8 @@ module.exports = (createCommon, options) => {
3937
after((done) => common.teardown(done))
4038

4139
it('should provide from one node and find it through another node', function (done) {
40+
this.timeout(80 * 1000)
41+
4242
waterfall([
4343
(cb) => nodeB.object.new('unixfs-dir', cb),
4444
(dagNode, cb) => {

0 commit comments

Comments
 (0)