You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add unit tests for validation utility functions #477
Add unit tests for the validation functions and Zod schemas in src/lib/utils/validation.ts.
Why
Validation functions are critical for data integrity across forms (profile updates, quiz submissions, reward claims). Without tests, regressions in validation logic could allow invalid data through or reject valid input.
Scope
Create src/lib/utils/__tests__/validation.test.ts
Test all exported validators and Zod schemas
No source code changes
Acceptance Criteria
Tests for isValidStellarAddress (valid, wrong length, wrong prefix, invalid checksum)
Tests for isValidEd25519PublicKey (valid, invalid)
Tests for isValidContractId (valid, invalid)
Tests for required, minLength, maxLength, displayName, composeValidators
Tests for Zod schemas: profileUpdateSchema, courseCreateSchema, quizSubmitSchema, rewardClaimSchema
Congratulations, @alfeedrips! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on September 30, 2026.
🧑💻 @alfeedrips: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
Warning
When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
😎 @alfeedrips: You earned 200 Points for completing this issue! After the current Wave ends, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.
🧑💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.
Activity
okaforwisdom664-lgtm commentedon Sep 28, 2026
@okaforwisdom664-lgtm has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @okaforwisdom664-lgtm to this issue.
bbstardts commentedon Sep 28, 2026
@bbstardts has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @bbstardts to this issue.
Godbrand0 commentedon Sep 28, 2026
@Godbrand0 has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Godbrand0 to this issue.
alfeedrips commentedon Sep 29, 2026
@alfeedrips has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @alfeedrips to this issue.
drips-wave commentedon Sep 29, 2026
Congratulations, @alfeedrips! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on September 30, 2026.
🧑💻 @alfeedrips: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
Warning
When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
🌊 Happy Wave 🌊
grantfox-oss commentedon Sep 30, 2026
🎉 This issue has been marked as completed on GrantFox!
@alfeedrips's PR #506 was approved and merged by @DeFiVC.
🏆 @alfeedrips: You earned 35 FoxPoints for this contribution! Your current tier: Explorer (732 total points). Track your full progress on GrantFox.
👏 Great work, @alfeedrips! Keep contributing to ChainLearnOfficial.
drips-wave commentedon Sep 30, 2026
This issue has been completed by @alfeedrips as part of the Stellar Wave Program's 9th Wave 🥳
😎 @alfeedrips: You earned 200 Points for completing this issue! After the current Wave ends, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.
🧑💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.