Skip to content

Commit

Permalink
Update CLI.spec.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dblythy committed Jan 10, 2025
1 parent a36bf87 commit 6f8be9e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/CLI.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,18 +219,18 @@ describe('execution', () => {
});
}

function handleStderr(childProcess, done) {
function handleStderr(childProcess) {
childProcess.stderr.on('data', data => {
data = data.toString();
if (!data.includes('[DEP0040] DeprecationWarning')) {
done.fail(data);
throw data;
}
});
}

function handleError(childProcess, done) {
function handleError(childProcess) {
childProcess.on('error', err => {
done.fail(err);
throw err;
});
}

Expand Down

0 comments on commit 6f8be9e

Please sign in to comment.