Skip to content

Commit

Permalink
test: improve assertion in process test
Browse files Browse the repository at this point in the history
PR-URL: nodejs#22634
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
addaleax committed Sep 3, 2018
1 parent 8ac662e commit f423231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-process-env-allowed-flags.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ require('../common');
// assert all "canonical" flags begin with dash(es)
{
process.allowedNodeEnvironmentFlags.forEach((flag) => {
assert.strictEqual(/^--?[a-z8_-]+$/.test(flag), true);
assert(/^--?[a-z8_-]+$/.test(flag), `Unexpected format for flag ${flag}`);
});
}

Expand Down

0 comments on commit f423231

Please sign in to comment.