Skip to content

Add unit tests for the utils classification helpers#1118

Merged
1nonlypiece merged 1 commit into
Commitlabs-Org:masterfrom
Baskarayelu:issue-986
Jun 29, 2026
Merged

Add unit tests for the utils classification helpers#1118
1nonlypiece merged 1 commit into
Commitlabs-Org:masterfrom
Baskarayelu:issue-986

Conversation

@Baskarayelu

Copy link
Copy Markdown
Contributor

Closes #986

Summary

Basic implementation of: Add unit tests for the utils classification helpers

Changes

  • Added src/utils/__tests__/classification.test.ts with 10 focused test cases
  • Covers all classification branches: low_compliance, maturing_soon, action_required
  • Tests exact boundary conditions (complianceScore < 70, daysRemaining <= 7, drawdown >= 800f maxLoss)
  • Pins exact returned token strings to prevent silent styling drift
  • Tests edge cases: non-numeric drawdown/maxLoss, empty input, multiple risk categories, fallback/filter behavior

🤖 Generated with Claude Code

@vercel

vercel Bot commented Jun 29, 2026

Copy link
Copy Markdown

@Baskarayelu is attempting to deploy a commit to the 1nonly's projects Team on Vercel.

A member of the Team first needs to authorize it.

@1nonlypiece 1nonlypiece merged commit ea916fa into Commitlabs-Org:master Jun 29, 2026
2 of 12 checks passed
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 the utils classification helpers

2 participants