We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 387e292 commit 76004f3Copy full SHA for 76004f3
test/parallel/test-parse-args.mjs
@@ -451,7 +451,7 @@ const candidateGreedyOptions = [
451
'--foo',
452
];
453
454
-candidateGreedyOptions.forEach((value) => {
+for (const value of candidateGreedyOptions) {
455
test(`greedy: when short option with value '${value}' then eaten`, () => {
456
const args = ['-w', value];
457
const options = { with: { type: 'string', short: 'w' } };
@@ -469,7 +469,7 @@ candidateGreedyOptions.forEach((value) => {
469
const result = parseArgs({ args, options, strict: false });
470
assert.deepStrictEqual(result, expectedResult);
471
});
472
-});
+}
473
474
test('strict: when candidate option value is plain text then does not throw', () => {
475
const args = ['--with', 'abc'];
0 commit comments