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

Commit 76612ed

Browse files
committed
chore: cleanup requires
License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io>
1 parent 33d2312 commit 76612ed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+138
-378
lines changed

js/src/block/get.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
/* eslint-env mocha */
2-
/* eslint max-nested-callbacks: ["error", 8] */
3-
42
'use strict'
53

64
const chai = require('chai')
75
const dirtyChai = require('dirty-chai')
8-
const expect = chai.expect
9-
chai.use(dirtyChai)
106
const multihash = require('multihashes')
117
const CID = require('cids')
128
const Buffer = require('safe-buffer').Buffer
139
const auto = require('async/auto')
1410
const { getDescribe, getIt } = require('../utils/mocha')
1511

12+
const expect = chai.expect
13+
chai.use(dirtyChai)
14+
1615
module.exports = (createCommon, options) => {
1716
const describe = getDescribe(options)
1817
const it = getIt(options)

js/src/block/put.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
/* eslint-env mocha */
2-
/* eslint max-nested-callbacks: ["error", 8] */
3-
42
'use strict'
53

64
const chai = require('chai')
75
const dirtyChai = require('dirty-chai')
8-
const expect = chai.expect
9-
chai.use(dirtyChai)
106
const Block = require('ipfs-block')
117
const multihash = require('multihashes')
128
const CID = require('cids')
139
const Buffer = require('safe-buffer').Buffer
1410
const { getDescribe, getIt } = require('../utils/mocha')
1511

12+
const expect = chai.expect
13+
chai.use(dirtyChai)
14+
1615
module.exports = (createCommon, options) => {
1716
const describe = getDescribe(options)
1817
const it = getIt(options)

js/src/block/stat.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
/* eslint-env mocha */
2-
/* eslint max-nested-callbacks: ["error", 8] */
3-
42
'use strict'
53

64
const chai = require('chai')
75
const dirtyChai = require('dirty-chai')
8-
const expect = chai.expect
9-
chai.use(dirtyChai)
106
const CID = require('cids')
117
const auto = require('async/auto')
128
const { getDescribe, getIt } = require('../utils/mocha')
139

10+
const expect = chai.expect
11+
chai.use(dirtyChai)
12+
1413
module.exports = (createCommon, options) => {
1514
const describe = getDescribe(options)
1615
const it = getIt(options)

js/src/bootstrap/add.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/* eslint-env mocha */
2-
/* eslint max-nested-callbacks: ["error", 8] */
32
'use strict'
43

54
const chai = require('chai')
65
const dirtyChai = require('dirty-chai')
6+
const { getDescribe, getIt } = require('../utils/mocha')
7+
78
const expect = chai.expect
89
chai.use(dirtyChai)
9-
const { getDescribe, getIt } = require('../utils/mocha')
1010

1111
const invalidArg = 'this/Is/So/Invalid/'
1212
const validIp4 = '/ip4/104.236.176.52/tcp/4001/ipfs/QmSoLnSGccFuZQJzRadHn95W2CrSFmZuTdDWP8HXaHca9z'

js/src/bootstrap/list.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/* eslint-env mocha */
2-
/* eslint max-nested-callbacks: ["error", 8] */
32
'use strict'
43

54
const chai = require('chai')
65
const dirtyChai = require('dirty-chai')
6+
const { getDescribe, getIt } = require('../utils/mocha')
7+
78
const expect = chai.expect
89
chai.use(dirtyChai)
9-
const { getDescribe, getIt } = require('../utils/mocha')
1010

1111
module.exports = (createCommon, options) => {
1212
const describe = getDescribe(options)

js/src/bootstrap/rm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/* eslint-env mocha */
2-
/* eslint max-nested-callbacks: ["error", 8] */
32
'use strict'
43

54
const chai = require('chai')
65
const dirtyChai = require('dirty-chai')
6+
const { getDescribe, getIt } = require('../utils/mocha')
7+
78
const expect = chai.expect
89
chai.use(dirtyChai)
9-
const { getDescribe, getIt } = require('../utils/mocha')
1010

1111
const invalidArg = 'this/Is/So/Invalid/'
1212

js/src/config/get.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
/* eslint-env mocha */
2-
/* eslint max-nested-callbacks: ["error", 8] */
3-
42
'use strict'
53

64
const chai = require('chai')
75
const dirtyChai = require('dirty-chai')
6+
const { getDescribe, getIt } = require('../utils/mocha')
7+
88
const expect = chai.expect
99
chai.use(dirtyChai)
10-
const { getDescribe, getIt } = require('../utils/mocha')
1110

1211
module.exports = (createCommon, options) => {
1312
const describe = getDescribe(options)

js/src/config/replace.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
/* eslint-env mocha */
2-
/* eslint max-nested-callbacks: ["error", 8] */
3-
42
'use strict'
53

64
const chai = require('chai')
75
const dirtyChai = require('dirty-chai')
6+
const { getDescribe, getIt } = require('../utils/mocha')
7+
88
const expect = chai.expect
99
chai.use(dirtyChai)
10-
const { getDescribe, getIt } = require('../utils/mocha')
1110

1211
module.exports = (createCommon, options) => {
1312
const describe = getDescribe(options)

js/src/config/set.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
/* eslint-env mocha */
2-
/* eslint max-nested-callbacks: ["error", 8] */
3-
42
'use strict'
53

64
const chai = require('chai')
75
const dirtyChai = require('dirty-chai')
6+
const { getDescribe, getIt } = require('../utils/mocha')
7+
88
const expect = chai.expect
99
chai.use(dirtyChai)
10-
const { getDescribe, getIt } = require('../utils/mocha')
1110

1211
module.exports = (createCommon, options) => {
1312
const describe = getDescribe(options)

js/src/dag/get.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
/* eslint-env mocha */
2-
/* eslint max-nested-callbacks: ["error", 8] */
3-
42
'use strict'
53

64
const chai = require('chai')
75
const dirtyChai = require('dirty-chai')
8-
const expect = chai.expect
9-
chai.use(dirtyChai)
106
const { series, eachSeries } = require('async')
117
const dagPB = require('ipld-dag-pb')
128
const DAGNode = dagPB.DAGNode
139
const dagCBOR = require('ipld-dag-cbor')
1410
const { spawnNodeWithId } = require('../utils/spawn')
1511
const { getDescribe, getIt } = require('../utils/mocha')
1612

13+
const expect = chai.expect
14+
chai.use(dirtyChai)
15+
1716
module.exports = (createCommon, options) => {
1817
const describe = getDescribe(options)
1918
const it = getIt(options)

js/src/dag/put.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
/* eslint-env mocha */
2-
/* eslint max-nested-callbacks: ["error", 8] */
3-
42
'use strict'
53

64
const chai = require('chai')
75
const dirtyChai = require('dirty-chai')
8-
const expect = chai.expect
9-
chai.use(dirtyChai)
106
const dagPB = require('ipld-dag-pb')
117
const DAGNode = dagPB.DAGNode
128
const dagCBOR = require('ipld-dag-cbor')
139
const CID = require('cids')
1410
const { spawnNodeWithId } = require('../utils/spawn')
1511
const { getDescribe, getIt } = require('../utils/mocha')
1612

13+
const expect = chai.expect
14+
chai.use(dirtyChai)
15+
1716
module.exports = (createCommon, options) => {
1817
const describe = getDescribe(options)
1918
const it = getIt(options)

js/src/dag/tree.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
/* eslint-env mocha */
2-
/* eslint max-nested-callbacks: ["error", 8] */
3-
42
'use strict'
53

64
const chai = require('chai')
75
const dirtyChai = require('dirty-chai')
8-
const expect = chai.expect
9-
chai.use(dirtyChai)
106
const { series, eachSeries } = require('async')
117
const dagPB = require('ipld-dag-pb')
128
const dagCBOR = require('ipld-dag-cbor')
139
const { spawnNodeWithId } = require('../utils/spawn')
1410
const { getDescribe, getIt } = require('../utils/mocha')
1511

12+
const expect = chai.expect
13+
chai.use(dirtyChai)
14+
1615
module.exports = (createCommon, options) => {
1716
const describe = getDescribe(options)
1817
const it = getIt(options)

js/src/dht/findpeer.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33

44
const chai = require('chai')
55
const dirtyChai = require('dirty-chai')
6-
const expect = chai.expect
7-
chai.use(dirtyChai)
86
const { spawnNodesWithId } = require('../utils/spawn')
97
const { getDescribe, getIt } = require('../utils/mocha')
108

9+
const expect = chai.expect
10+
chai.use(dirtyChai)
11+
1112
module.exports = (createCommon, options) => {
1213
const describe = getDescribe(options)
1314
const it = getIt(options)

js/src/dht/findprovs.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33

44
const chai = require('chai')
55
const dirtyChai = require('dirty-chai')
6-
const expect = chai.expect
7-
chai.use(dirtyChai)
86
const waterfall = require('async/waterfall')
97
const CID = require('cids')
108
const { spawnNodesWithId } = require('../utils/spawn')
119
const { getDescribe, getIt } = require('../utils/mocha')
1210

11+
const expect = chai.expect
12+
chai.use(dirtyChai)
13+
1314
module.exports = (createCommon, options) => {
1415
const describe = getDescribe(options)
1516
const it = getIt(options)

js/src/dht/get.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33

44
const chai = require('chai')
55
const dirtyChai = require('dirty-chai')
6-
const expect = chai.expect
7-
chai.use(dirtyChai)
86
const waterfall = require('async/waterfall')
97
const { spawnNodesWithId } = require('../utils/spawn')
108
const { getDescribe, getIt } = require('../utils/mocha')
119

10+
const expect = chai.expect
11+
chai.use(dirtyChai)
12+
1213
module.exports = (createCommon, options) => {
1314
const describe = getDescribe(options)
1415
const it = getIt(options)

js/src/dht/provide.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33

44
const chai = require('chai')
55
const dirtyChai = require('dirty-chai')
6-
const expect = chai.expect
7-
chai.use(dirtyChai)
86
const CID = require('cids')
97
const { getDescribe, getIt } = require('../utils/mocha')
108

9+
const expect = chai.expect
10+
chai.use(dirtyChai)
11+
1112
module.exports = (createCommon, options) => {
1213
const describe = getDescribe(options)
1314
const it = getIt(options)

js/src/dht/put.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33

44
const chai = require('chai')
55
const dirtyChai = require('dirty-chai')
6+
const { getDescribe, getIt } = require('../utils/mocha')
7+
68
const expect = chai.expect
79
chai.use(dirtyChai)
8-
const { getDescribe, getIt } = require('../utils/mocha')
910

1011
module.exports = (createCommon, options) => {
1112
const describe = getDescribe(options)

js/src/dht/query.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33

44
const chai = require('chai')
55
const dirtyChai = require('dirty-chai')
6-
const expect = chai.expect
7-
chai.use(dirtyChai)
86
const { spawnNodesWithId } = require('../utils/spawn')
97
const { getDescribe, getIt } = require('../utils/mocha')
108

9+
const expect = chai.expect
10+
chai.use(dirtyChai)
11+
1112
module.exports = (createCommon, options) => {
1213
const describe = getDescribe(options)
1314
const it = getIt(options)

js/src/files/add-pull-stream.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
/* eslint-env mocha */
2-
/* eslint max-nested-callbacks: ["error", 8] */
3-
42
'use strict'
53

64
const chai = require('chai')
75
const dirtyChai = require('dirty-chai')
8-
const expect = chai.expect
9-
chai.use(dirtyChai)
106
const { fixtures } = require('./utils')
117
const pull = require('pull-stream')
128
const { getDescribe, getIt } = require('../utils/mocha')
139

10+
const expect = chai.expect
11+
chai.use(dirtyChai)
12+
1413
module.exports = (createCommon, options) => {
1514
const describe = getDescribe(options)
1615
const it = getIt(options)

js/src/files/add-readable-stream.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
/* eslint-env mocha */
2-
/* eslint max-nested-callbacks: ["error", 8] */
3-
42
'use strict'
53

64
const chai = require('chai')
75
const dirtyChai = require('dirty-chai')
8-
const expect = chai.expect
9-
chai.use(dirtyChai)
106
const { fixtures } = require('./utils')
117
const { getDescribe, getIt } = require('../utils/mocha')
128

9+
const expect = chai.expect
10+
chai.use(dirtyChai)
11+
1312
module.exports = (createCommon, options) => {
1413
const describe = getDescribe(options)
1514
const it = getIt(options)

js/src/files/add.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
/* eslint-env mocha */
2-
/* eslint max-nested-callbacks: ["error", 8] */
3-
42
'use strict'
53

64
const chai = require('chai')
75
const dirtyChai = require('dirty-chai')
8-
const expect = chai.expect
9-
chai.use(dirtyChai)
106
const { fixtures } = require('./utils')
117
const Readable = require('readable-stream').Readable
128
const pull = require('pull-stream')
139
const path = require('path')
1410
const expectTimeout = require('../utils/expect-timeout')
1511
const { getDescribe, getIt } = require('../utils/mocha')
1612

13+
const expect = chai.expect
14+
chai.use(dirtyChai)
15+
1716
module.exports = (createCommon, options) => {
1817
const describe = getDescribe(options)
1918
const it = getIt(options)

js/src/files/cat-pull-stream.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
/* eslint-env mocha */
2-
/* eslint max-nested-callbacks: ["error", 8] */
3-
42
'use strict'
53

64
const chai = require('chai')
75
const dirtyChai = require('dirty-chai')
8-
const expect = chai.expect
9-
chai.use(dirtyChai)
106
const { fixtures } = require('./utils')
117
const pull = require('pull-stream')
128
const { getDescribe, getIt } = require('../utils/mocha')
139

10+
const expect = chai.expect
11+
chai.use(dirtyChai)
12+
1413
module.exports = (createCommon, options) => {
1514
const describe = getDescribe(options)
1615
const it = getIt(options)

0 commit comments

Comments
 (0)