Skip to content

test(phase-01): add unit tests from add-tests command#655

Open
Yuvraj-Sarathe wants to merge 1 commit into
Coder-s-OG-s:mainfrom
Yuvraj-Sarathe:three-tests
Open

test(phase-01): add unit tests from add-tests command#655
Yuvraj-Sarathe wants to merge 1 commit into
Coder-s-OG-s:mainfrom
Yuvraj-Sarathe:three-tests

Conversation

@Yuvraj-Sarathe

Copy link
Copy Markdown
  • 6 tests for help.ts (sendHelpRequest)
  • 6 tests for streak.ts (getCurrentStreak, getPublicStreak)
  • 6 tests for usage.ts (getUsage)
  • All tests pass (187/187 across 12 action test files)
  • Behavioral findings documented: no rec ownership check in help.ts
  • Silent degradation on auth failure in streak.ts/usage.ts

Summary

Added 3 more tests for help, streak and usage.

Type of Change

  • Bug fix
  • New feature
  • UI / UX improvement
  • Refactor
  • Documentation
  • Other

Related Issue

Closes #639

What was changed?

3 new files added

Screenshots

Checklist

  • My code follows the project structure and conventions
  • I tested this locally (npm run dev)
  • No hardcoded secrets or credentials
  • I have updated documentation if needed

- 6 tests for help.ts (sendHelpRequest)
- 6 tests for streak.ts (getCurrentStreak, getPublicStreak)
- 6 tests for usage.ts (getUsage)
- All tests pass (187/187 across 12 action test files)
- Behavioral findings documented: no rec ownership check in help.ts
- Silent degradation on auth failure in streak.ts/usage.ts
@vercel

vercel Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

@Yuvraj-Sarathe is attempting to deploy a commit to the codersogs-3057's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Soumya-codr

Copy link
Copy Markdown
Collaborator

@Yuvraj-Sarathe your Ci failed please fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Write tests for help, streak, and usage server actions

3 participants