Skip to content

Commit 8d301ff

Browse files
remove unneeded async dep
1 parent 240e8b9 commit 8d301ff

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
"devDependencies": {
3232
"abstract-blob-store": "^3.2.0",
3333
"aegir": "^6.0.1",
34-
"async": "^2.0.1",
3534
"buffer-loader": "^0.0.1",
3635
"chai": "^3.5.0",
3736
"fs-pull-blob-store": "^0.3.0",

test/browser.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
'use strict'
44

5-
const async = require('async')
5+
const series = require('run-series')
66
const Store = require('idb-pull-blob-store')
77
const _ = require('lodash')
88
const pull = require('pull-stream')
@@ -34,7 +34,7 @@ describe('IPFS Repo Tests on the Browser', function () {
3434
const mainBlob = new Store('ipfs')
3535
const blocksBlob = new Store('ipfs/blocks')
3636

37-
async.eachSeries(repoData, (file, cb) => {
37+
series(repoData.map((file) => (cb) => {
3838
if (_.startsWith(file.key, 'datastore/')) {
3939
return cb()
4040
}
@@ -48,7 +48,7 @@ describe('IPFS Repo Tests on the Browser', function () {
4848
pull.values([file.value]),
4949
blob.write(key, cb)
5050
)
51-
}, done)
51+
}), done)
5252
})
5353

5454
const repo = new IPFSRepo('ipfs', {stores: Store})

0 commit comments

Comments
 (0)