Skip to content

Commit

Permalink
Do not fail
Browse files Browse the repository at this point in the history
  • Loading branch information
InversionSpaces committed Feb 21, 2024
1 parent 1969296 commit fc67a13
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,8 @@ export async function execute(
cmd: string,
...args: string[]
): Promise<[string, string]> {
return new Promise((resolve, reject) => {
execFile(cmd, args, (error, stdout, stderr) => {
if (error) {
reject(error);
}

return new Promise((resolve, _) => {
execFile(cmd, args, (_, stdout, stderr) => {
resolve([stdout, stderr]);
});
});
Expand Down

0 comments on commit fc67a13

Please sign in to comment.