Skip to content

Commit

Permalink
fixup!
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 authored Jul 19, 2024
1 parent 13a27c2 commit 7611092
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/common/assertSnapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ async function spawnAndAssert(filename, transform = (x) => x, { tty = false, ...
}
const flags = common.parseTestFlags(filename);
const executable = tty ? (process.env.PYTHON || 'python3') : process.execPath;
const args = tty ? [path.join(__dirname, '../..', 'tools/pseudo-tty.py'), process.execPath, ...flags, filename] : [...flags, filename];
const args =
tty ?
[path.join(__dirname, '../..', 'tools/pseudo-tty.py'), process.execPath, ...flags, filename] :
[...flags, filename];
const { stdout, stderr } = await common.spawnPromisified(executable, args, options);
await assertSnapshot(transform(`${stdout}${stderr}`), filename);
}
Expand Down

0 comments on commit 7611092

Please sign in to comment.