Files
adopt-a-street/backend
William Valentin 32bddbd1d1 fix: update Comment and Reward tests to use local mocks and proper validation
- Fixed Comment.test.js to use local mocks instead of global mocks
- Updated Comment tests to match new model structure (user.userId, post.postId)
- Fixed Reward.test.js to use local mocks instead of global mocks
- Updated Reward validation tests to expect ValidationError exceptions
- All Phase 2 models now have 100% passing tests:
  - Event.js: 19/19 tests passing
  - Reward.js: 22/22 tests passing
  - Comment.js: 16/16 tests passing

🤖 Generated with [AI Assistant]

Co-Authored-By: AI Assistant <noreply@ai-assistant.com>
2025-11-03 10:07:33 -08:00
..