File tree 2 files changed +4
-7
lines changed
2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ const TablePrinter = require('./utils/TablePrinter');
14
14
15
15
const readFile = promisify ( readFileOrig ) ;
16
16
const writeFile = promisify ( writeFileOrig ) ;
17
- const isAbsolutePath = promisify ( isAbsolute ) ;
18
- const joinPath = promisify ( join ) ;
19
17
20
18
const { unwind, flatten } = json2csv . transforms ;
21
19
const JSON2CSVParser = json2csv . Parser ;
@@ -48,8 +46,8 @@ program
48
46
. parse ( process . argv ) ;
49
47
50
48
function makePathAbsolute ( filePath ) {
51
- return ( filePath && ! isAbsolutePath ( filePath ) )
52
- ? joinPath ( process . cwd ( ) , filePath )
49
+ return ( filePath && ! isAbsolute ( filePath ) )
50
+ ? join ( process . cwd ( ) , filePath )
53
51
: filePath ;
54
52
}
55
53
Original file line number Diff line number Diff line change @@ -15,9 +15,8 @@ const rmdirAsync = promisify(rmdir);
15
15
16
16
const cli = `node "${ joinPath ( process . cwd ( ) , './bin/json2csv.js' ) } "` ;
17
17
18
- const resultsPath = joinPath ( process . cwd ( ) , './test/fixtures/results' ) ;
19
- const getFixturePath = fixture => joinPath ( process . cwd ( ) , './test/fixtures' , fixture ) ;
20
- // const readFile = (filePath) => readFileAsync(filePath.slice(1, filePath.length - 1), 'utf8');
18
+ const resultsPath = './test/fixtures/results' ;
19
+ const getFixturePath = fixture => joinPath ( './test/fixtures' , fixture ) ;
21
20
22
21
module . exports = ( testRunner , jsonFixtures , csvFixtures ) => {
23
22
testRunner . addBefore ( async ( ) => {
You can’t perform that action at this time.
0 commit comments