Skip to content

Commit 2025eaf

Browse files
addaleaxtargos
authored andcommitted
test: improve assertion in process test
PR-URL: #22634 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
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

Lines changed: 1 addition & 1 deletion
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)