Skip to content

Commit 335b513

Browse files
committed
chore: address review
1 parent 5050b6c commit 335b513

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ test('short option group does not consume subsequent positional', function(t) {
9191
t.end();
9292
});
9393

94-
// Refs: https://github.com/yargs/yargs-parser/blob/ae11f496a8318ea8885aa25015d429b33713c314/test/yargs-parser.cjs#L30
94+
// See: Guideline 5 https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html
9595
test('if terminal of short-option group configured withValue, subsequent positional is stored', function(t) {
9696
const passedArgs = ['-rvf', 'foo'];
9797
const passedOptions = { withValue: ['f'] };
@@ -114,7 +114,7 @@ test('handles short-option groups in conjunction with long-options', function(t)
114114

115115
test('handles short-option groups with "short" alias configured', function(t) {
116116
const passedArgs = ['-rf'];
117-
const passedOptions = { withValue: ['foo'], short: { r: 'remove' } };
117+
const passedOptions = { short: { r: 'remove' } };
118118
const expected = { flags: { remove: true, f: true }, values: { remove: undefined, f: undefined }, positionals: [] };
119119
const args = parseArgs(passedArgs, passedOptions);
120120
t.deepEqual(args, expected);

0 commit comments

Comments
 (0)