Skip to content

Comments

Add unit tests for donations, auth, expiry, trust and hygiene services#34

Open
Mayukasri06 wants to merge 2 commits intomainfrom
unit-testing
Open

Add unit tests for donations, auth, expiry, trust and hygiene services#34
Mayukasri06 wants to merge 2 commits intomainfrom
unit-testing

Conversation

@Mayukasri06
Copy link
Collaborator

This PR adds unit testing coverage for backend operational and service layers.

Implemented tests for:

  • DonationsController (operational endpoints)
  • DonationsService (business logic)
  • AuthService (authentication & JWT)
  • ExpiryService (food safety logic)
  • TrustService (trust scoring logic)
  • HygieneService (checklist validation)

Test coverage includes:

  • Positive and negative scenarios
  • Boundary conditions
  • Authorization checks
  • Status transition validation
  • Expiry and safety constraints

All tests pass successfully.

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.

2 participants