Contributor Guidelines
Descrcibe the bug?
The useLikePlays hook in src/common/hooks/useLikePlays.js has incomplete
test coverage. The existing tests only cover happy path and error path but
are missing the following cases:
- Verify likePlay calls likeIndividualPlay with correct argument
- Verify unLikePlay calls unlikeIndividualPlay with correct argument
- Verify hook returns both likePlay and unLikePlay functions
Steps to reproduce the bug?
- Open src/common/hooks/tests/useLikePlays.test.js
- Notice missing test cases for argument verification and return shape
Expected behavior
The hook should have complete test coverage including argument verification
and return shape validation.
Desktop (Please provide your system information)
- OS: Windows
- Browser: Chrome
- Version: Not applicable (this is a test coverage issue)
Mobile (Please provide your device information)
No response
Screenshot / Screenshare
No response
Relevant log output
No response
Record
Code of Conduct
Contributor Guidelines
Descrcibe the bug?
The useLikePlays hook in src/common/hooks/useLikePlays.js has incomplete
test coverage. The existing tests only cover happy path and error path but
are missing the following cases:
Steps to reproduce the bug?
Expected behavior
The hook should have complete test coverage including argument verification
and return shape validation.
Desktop (Please provide your system information)
Mobile (Please provide your device information)
No response
Screenshot / Screenshare
No response
Relevant log output
No response
Record
Code of Conduct