-
Notifications
You must be signed in to change notification settings - Fork 280
test: implement comprehensive application feedback tests #2555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThis PR adds comprehensive test coverage for a new application feedback submission feature, including integration tests for the PATCH endpoint, unit tests for the controller and model methods, and expanded validator tests for status and feedback handling. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
e57c612 to
a02baf1
Compare
ba49b5b to
79721d9
Compare
The base branch was changed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
🤖 Fix all issues with AI agents
In `@test/integration/application.test.ts`:
- Around line 597-615: Remove the duplicate "should return 401 if user is not a
super user" test block in test/integration/application.test.ts (the one that
calls .patch(`/applications/${applicationId1}/feedback`) and uses
cookieName/jwt) so only the original test remains; locate the duplicate by the
test description string and delete that entire it(...) block to avoid redundant
coverage while leaving the earlier identical test (the original at the other
location) intact.
In `@test/unit/middlewares/application-validator.test.ts`:
- Around line 2-3: Remove the unnecessary alias by deleting the `const Sinon =
sinon;` declaration and use the imported `sinon` object directly; update all
occurrences of `Sinon.spy()` (and any other `Sinon.*` usages) to `sinon.spy()`
(or corresponding `sinon.*`) so the tests use the original import consistently.
* feat: add application feedback submission functionality (#2552) * test: implement comprehensive application feedback tests (#2555) * feat: add application feedback submission functionality * feat: enhance application feedback functionality with comprehensive tests * refactor: update application validator tests for improved clarity and consistency * test: remove unauthorized user test case for application feedback
Date: 18 Jan, 2026
Developer Name: @AnujChhikara
Issue Ticket Number
Description
Documentation Updated?
Under Feature Flag
Database Changes
Breaking Changes
Development Tested?
Test Coverage
Screenshot 1