10BC0 test/cli.js: fix superfluous arguments · MohammadYounes/rtlcss@41879ec · GitHub
[go: up one dir, main page]

Skip to content

Commit 41879ec

Browse files
XhmikosRMohammadYounes
authored andcommitted
test/cli.js: fix superfluous arguments
1 parent 37d3dc9 commit 41879ec

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/cli.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,9 @@ const outputPath = './test/css/input.rtl.css'
1414

1515
function runCommand (cmd, args, done) {
1616
const child = spawn(cmd, args)
17-
let resp = ''
18-
let err = ''
19-
child.stderr.on('data', (error) => { err += error })
20-
child.stdout.on('data', (buffer) => { resp += buffer.toString() })
21-
child.stdout.on('end', () => { done(err, resp) })
17+
let output = ''
18+
child.stderr.on('data', (data) => { output += data })
19+
child.stdout.on('end', () => { done(output) })
2220
}
2321

2422
describe('# CLI', () => {

0 commit comments

Comments
 (0)
0