Skip to content

Commit

Permalink
Allowing either an empty string or a new line in test where no output…
Browse files Browse the repository at this point in the history
… should be given due to os differences.
  • Loading branch information
ronilan committed Jun 29, 2024
1 parent 13676a7 commit 0d93a97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/build.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ apps.forEach((app) => {
run('node-pre-gyp', 'configure', '--loglevel=info -- -Dfoo=bar', app, {}, (err, stdout, stderr) => {
t.ifError(err);
const clean = stdout.replaceAll('\n', '')
t.equal(stdout, clean);
t.equal(clean, '');
t.ok(stderr.search(/(gyp info spawn args).*(-Dfoo=bar)/) > -1);
t.end();
});
Expand Down

0 comments on commit 0d93a97

Please sign in to comment.