[Test] Add Zero-Value Expense Test Case to Finance Discipline Test Suite
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- Under an hour
- Newbie friendliness
- 92/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- testing
Research direction
Open tests/finance-discipline.test.ts and review the existing positive and negative cent allocation cases. Add the zero-value assertion for formatCentsToCurrency(0), then run npm run test:file -- tests/finance-discipline.test.ts and confirm the suite passes offline.
Written by the indexing model from the issue text.
Description
- Labels:
good first issue,testing,difficulty:beginner,area:core - Target File:
tests/finance-discipline.test.ts - Estimated Time: 10–15 minutes
- Difficulty: Level 2 (Beginner)
Why This Matters
Financial arithmetic in PACT OS requires strict boundary handling. Verifying that zero-value cents format correctly ensures financial ledgers render cleanly without negative sign zero (-$0.00) bugs.
Current Behavior
tests/finance-discipline.test.ts tests positive and negative cent allocations, but does not explicitly assert zero-cents formatting.
Requested Change
Add a test case in tests/finance-discipline.test.ts asserting that formatCentsToCurrency(0) returns "$0.00" and handles zero allocations without error.
Acceptance Criteria
- Zero-value assertion added to
tests/finance-discipline.test.ts. - Test suite executes cleanly offline with
npm run test:file -- tests/finance-discipline.test.ts.
Verification
npm run test:file -- tests/finance-discipline.test.ts
Contributor Notes
Single-file test addition.
🚀 How to Claim and Implement an Issue
- Choose an Issue: Browse our open issues and pick one matching your interest and available time.
- Comment on GitHub: Leave a comment on the corresponding GitHub issue: "I would like to work on this issue. Please assign it to me."
- Follow the Guide: Review our Beginner's Contribution Guide for step-by-step Git instructions.
- Verify Locally: Run the specific verification command listed on the issue before opening your PR.
- Submit PR: Open a pull request against
mainreferencing this issue number!
- Dominant language
- TypeScript
- Stars
- 5
- Forks
- 7
- Avg merge
- 58m
- Merged PRs (30d)
- 42
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from TheVicky1/Pact_OS
-
area:dashboard beginner friendly bug community contributions-welcome copy difficulty:beginner difficulty:easy good first issue hacktoberfest help wanted open-source up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
accessibility area:tasks beginner friendly bug community contributions-welcome difficulty:beginner difficulty:easy good first issue hacktoberfest help wanted open-source up-for-grabs
Difficulty 2/5 Under an hour Newbie friendliness 92/100
-
area:habits beginner friendly bug community contributions-welcome difficulty:beginner difficulty:easy good first issue hacktoberfest help wanted open-source ui up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
area:tasks beginner friendly bug community contributions-welcome difficulty:beginner difficulty:easy good first issue hacktoberfest help wanted open-source testing up-for-grabs
Difficulty 2/5 Under an hour Newbie friendliness 92/100
-
area:core beginner friendly bug community contributions-welcome difficulty:beginner difficulty:easy good first issue hacktoberfest help wanted jsdoc open-source up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 95/100
All issues in TheVicky1/Pact_OS
Similar issues
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 91/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100