Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: improve assertion in process test
  • Loading branch information
addaleax committed Aug 31, 2018
commit deb31fb59290cf2a6ccbd1b7df3a5eb5b1e2f936
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