Skip to content

Commit

Permalink
fix node v12 CI
Browse files Browse the repository at this point in the history
  • Loading branch information
75lb committed Nov 18, 2024
1 parent 0864d68 commit dd45fe9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ skip.set('Missing type: all args to the right of the fromArg returned', async fu
const optionDefinitions = [
{
from: arg => arg === '--one',
to: (valueIndex, arg, index, argv) => argv[index + 1]?.startsWith('--')
to: (valueIndex, arg, index, argv) => argv[index + 1] && argv[index + 1].startsWith('--')
}
]
const cla = new CommandLineArgs(argv, optionDefinitions)
Expand All @@ -116,7 +116,7 @@ skip.set('name can be a function receiving the extraction matched by from and to
const optionDefinitions = [
{
from: arg => arg === '--one',
to: (valueIndex, arg, index, argv) => argv[index + 1]?.startsWith('--'),
to: (valueIndex, arg, index, argv) => argv[index + 1] && argv[index + 1].startsWith('--'),
name: (extraction) => extraction.join('|')
}
]
Expand Down

0 comments on commit dd45fe9

Please sign in to comment.