Skip to content

Add unit tests for all utility functions in frontend/src/utils/ #480

@Mystery-CLI

Description

@Mystery-CLI

🔧 Title: Add unit tests for all utility functions in frontend/src/utils/

📘 Description
frontend/tests/utils.test.js exists but only covers some utilities. validateStellarAddress.js, formatBalance.js, validateAmount.js, errorMessages.js, and searchHighlighter.js need comprehensive unit tests including edge cases.

Acceptance Criteria

  • Achieve 100% branch coverage for all files in frontend/src/utils/
  • Add tests for: empty string, null, undefined, max/min values, special characters
  • Add property-based tests using fast-check for validateAmount and formatBalance
  • All tests must run in under 1 second total

🔧 Context: frontend/src/utils/; frontend/tests/utils.test.js.


Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions