Skip to content

test: add unit tests for formatUsd in lib/utils.ts - #287

Merged
martinzhames merged 2 commits into
dupdab:mainfrom
Xaxxoo:fix/issue-130-formatUsd-tests
Sep 1, 2026
Merged

test: add unit tests for formatUsd in lib/utils.ts#287
martinzhames merged 2 commits into
dupdab:mainfrom
Xaxxoo:fix/issue-130-formatUsd-tests

Conversation

@Xaxxoo

@Xaxxoo Xaxxoo commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add comprehensive unit tests for the formatUsd() utility function in src/lib/utils.ts
  • Tests cover: typical values, zero, negative numbers, NaN/undefined inputs, comma grouping, rounding behavior, and edge cases

Test plan

  • Run npm test and verify all new tests pass
  • Verify test coverage for formatUsd edge cases (NaN, undefined, negative zero)

Closes #130

Generated with Claude Code

Xaxxoo and others added 2 commits August 29, 2026 18:08
@drips-wave

drips-wave Bot commented Aug 29, 2026

Copy link
Copy Markdown

@Xaxxoo Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@martinzhames
martinzhames merged commit 26d4177 into dupdab:main Sep 1, 2026
1 check failed
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.

Add unit tests for formatUsd in lib/utils.ts

2 participants