diff --git a/test/parallel/test-process-env-allowed-flags.js b/test/parallel/test-process-env-allowed-flags.js index 25907c3b0e8f3c..39ad09a6c35b10 100644 --- a/test/parallel/test-process-env-allowed-flags.js +++ b/test/parallel/test-process-env-allowed-flags.js @@ -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}`); }); }