Skip to content

test(validate): add coverage for validateOptionInt - #1162

Open
Michealtimi wants to merge 1 commit into
google:masterfrom
Michealtimi:test/validate-option-int
Open

Michealtimi wants to merge 1 commit into
google:masterfrom
Michealtimi:test/validate-option-int

Conversation

@Michealtimi

Copy link
Copy Markdown

This PR adds unit test coverage for validateOptionInt in src/commands/validate.ts,
which previously had no test file, covering: integer parsing, non-numeric/decimal
rejection, inclusive bounds checking, and the falsy-value passthrough behavior.

  • npm run test succeeds.
  • npm run lint succeeds.
  • Appropriate changes to README are included in PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant