Skip to content

Test: added unit tests for Number component - #103

Open
imayuss wants to merge 1 commit into
Karel-cz:mainfrom
imayuss:test/number-unit-test
Open

Test: added unit tests for Number component#103
imayuss wants to merge 1 commit into
Karel-cz:mainfrom
imayuss:test/number-unit-test

Conversation

@imayuss

@imayuss imayuss commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Short description of the fix

Added unit tests for the Number component covering rendering with default & custom props.

  • Added number.test.tsx following the conventions in block.test.tsx.
  • Covered default rendering integer/ decimal/ negative/ zero/ large number formatting, minDecimalDigits/ maxDecimalDigits rounding & padding behavior fixDecimalDigits overriding both the tooltip & wholeLengthNumberInTooltip props.
  • Covered custom style merging & a smoke test across darkMode/ colorScheme combinations.
  • Included one optional snapshot test.

Files changed: tests/ui/basic-components/number.test.tsx

Issue to close #67


  • Synced repo before changes?
  • Documentation updated (if needed)?
  • Functionality verified locally?

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.

[TEST] UI React: Add basic unit tests for Number component

1 participant