Skip to content

🐛 [Bug report]: Missing test coverage for useLikePlays hook #1710

@riteshrana12-dev

Description

@riteshrana12-dev

Contributor Guidelines

  • I have read the guidelines and discussion

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?

  1. Open src/common/hooks/tests/useLikePlays.test.js
  2. 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

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working💻 aspect: codeConcerns the software code in the repository🚦status: awaiting triageHas not been triaged & therefore, not ready for work🛠 goal: fixBug fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions