Skip to content

Commit

Permalink
chore: apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Willhoit <iowillhoit@users.noreply.github.com>
  • Loading branch information
mdonnalley and iowillhoit authored Dec 17, 2024
1 parent d4746f3 commit bebaa1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/parser/parse.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1673,13 +1673,14 @@ See more help with --help`)
})

it('succeeds if some are set', async () => {
const out = await parse(['--bar', 'b'], {
const out = await parse(['--foo', 'a', '--bar', 'b'], {
flags: {
foo: Flags.string({atLeastOne: ['foo', 'bar', 'baz']}),
bar: Flags.string({char: 'b', atLeastOne: ['foo', 'bar', 'baz']}),
baz: Flags.string({char: 'z'}),
},
})
expect(out.flags.foo).to.equal('a')
expect(out.flags.bar).to.equal('b')
})

Expand Down

0 comments on commit bebaa1c

Please sign in to comment.