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

Commit 74bccc2

Browse files
author
Alan Shaw
authored
chore(package): update aegir to version 19.0.3 (#485)
* chore(package): update aegir to version 19.0.3 Closes #480 * fix: appease linter License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
1 parent e00eb4a commit 74bccc2

File tree

7 files changed

+11
-9
lines changed

7 files changed

+11
-9
lines changed

.aegir.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = {
44
lint: {
55
files: [
66
'src/**/*.js',
7-
'test/**/*.js'
7+
'test/*.js'
88
]
99
}
1010
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"through2": "^3.0.0"
6767
},
6868
"devDependencies": {
69-
"aegir": "^18.1.1"
69+
"aegir": "^19.0.3"
7070
},
7171
"contributors": [
7272
"Alan Shaw <alan.shaw@protocol.ai>",

src/block/put.js

-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,5 @@ module.exports = (createCommon, options) => {
9494
done()
9595
})
9696
})
97-
98-
// TODO it.skip('Promises support', (done) => {})
9997
})
10098
}

src/block/stat.js

-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,5 @@ module.exports = (createCommon, options) => {
4343
done()
4444
})
4545
})
46-
47-
// TODO it.skip('Promises support', (done) => {})
4846
})
4947
}

src/dag/put.js

-2
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,5 @@ module.exports = (createCommon, options) => {
137137
})
138138

139139
it.skip('should put by passing the cid instead of format and hashAlg', (done) => {})
140-
141-
// TODO it.skip('Promises support', (done) => {})
142140
})
143141
}

src/files-regular/refs-tests.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,14 @@ function loadContent (ipfs, store, node, callback) {
381381

382382
if (typeof node === 'object') {
383383
const entries = Object.entries(node)
384-
const sorted = entries.sort((a, b) => a[0] > b[0] ? 1 : a[0] < b[0] ? -1 : 0)
384+
const sorted = entries.sort((a, b) => {
385+
if (a[0] > b[0]) {
386+
return 1
387+
} else if (a[0] < b[0]) {
388+
return -1
389+
}
390+
return 0
391+
})
385392
mapSeries(sorted, ([name, child], cb) => {
386393
loadContent(ipfs, store, child, (err, cid) => {
387394
cb(err, { name, cid: cid && cid.toString() })

src/pubsub/subscribe.js

+1
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ module.exports = (createCommon, options) => {
360360
const duration = new Date().getTime() - startTime
361361
const opsPerSec = Math.floor(count / (duration / 1000))
362362

363+
// eslint-disable-next-line
363364
console.log(`Send/Receive 100 messages took: ${duration} ms, ${opsPerSec} ops / s`)
364365

365366
check()

0 commit comments

Comments
 (0)