Skip to content

Commit

Permalink
fix: remove default from wait flag (#330)
Browse files Browse the repository at this point in the history
* fix: remove default

* test: update wait flag test
  • Loading branch information
mdonnalley authored Mar 14, 2024
1 parent 1502a4d commit cfcba21
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/common/flags/flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export const wait: OptionFlag<Duration> = Flags.duration({
summary: messages.getMessage('flags.wait.summary'),
description: messages.getMessage('flags.wait.description'),
defaultValue: 33,
default: Duration.minutes(33),
helpValue: '<minutes>',
min: 3,
exclusive: ['async'],
Expand Down
2 changes: 1 addition & 1 deletion test/common/flags.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ describe('waitFlag', () => {
const out = await Parser.parse([], {
flags: { wait },
});
expect(out.flags.wait).to.deep.equal(wait.default);
expect(out.flags.wait).to.deep.equal(Duration.minutes(33));
});

it('wait and async flags are mutually exclusive', async () => {
Expand Down

0 comments on commit cfcba21

Please sign in to comment.