This repository was archived by the owner on Aug 11, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 34
34
"chai" : " ^4.2.0" ,
35
35
"cids" : " ~0.5.7" ,
36
36
"dirty-chai" : " ^2.0.1" ,
37
+ "fs-extra" : " ^8.0.1" ,
37
38
"ipfs-block" : " ~0.8.0" ,
38
39
"ipfs-repo" : " ~0.27.0" ,
39
40
"lodash" : " ^4.17.11" ,
40
- "multihashing-async" : " ~0.7.0" ,
41
- "ncp" : " ^2.0.0" ,
42
- "promisify-es6" : " ^1.0.3" ,
43
- "rimraf" : " ^2.6.3"
41
+ "multihashing-async" : " ~0.7.0"
44
42
},
45
43
"engines" : {
46
44
"node" : " >=6.0.0" ,
Original file line number Diff line number Diff line change 1
1
/* eslint-env mocha */
2
2
'use strict'
3
3
4
- var promisify = require ( 'promisify-es6' )
5
- const ncp = require ( 'ncp' ) . ncp
6
- const rimraf = require ( 'rimraf' )
4
+ const fs = require ( 'fs-extra' )
7
5
const path = require ( 'path' )
8
6
const IPFSRepo = require ( 'ipfs-repo' )
9
7
@@ -16,13 +14,13 @@ describe('IPFS Block Tests on Node.js', () => {
16
14
const repo = new IPFSRepo ( repoPath )
17
15
18
16
before ( async ( ) => {
19
- await promisify ( ncp ) ( testRepoPath , repoPath )
17
+ await fs . copy ( testRepoPath , repoPath )
20
18
await repo . open ( )
21
19
} )
22
20
23
21
after ( async ( ) => {
24
22
await repo . close ( )
25
- await promisify ( rimraf ) ( repoPath )
23
+ await fs . remove ( repoPath )
26
24
} )
27
25
28
26
tests ( repo )
You can’t perform that action at this time.
0 commit comments