Skip to content

Commit 2025eaf

Browse files
addaleaxtargos
authored andcommitted
test: improve assertion in process test
PR-URL: #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]>
1 parent a5c0bc4 commit 2025eaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-process-env-allowed-flags.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ require('../common');
5050
// assert all "canonical" flags begin with dash(es)
5151
{
5252
process.allowedNodeEnvironmentFlags.forEach((flag) => {
53-
assert.strictEqual(/^--?[a-z8_-]+$/.test(flag), true);
53+
assert(/^--?[a-z8_-]+$/.test(flag), `Unexpected format for flag ${flag}`);
5454
});
5555
}
5656

0 commit comments

Comments
 (0)