Skip to content

Write a Unit Test for debounce utility #156

@sunilk429

Description

@sunilk429

Issue Description

The debounce utility function lacks unit tests to verify its behavior.

Expected Behavior

  • Unit tests should be added for the debounce utility to ensure:
    • Proper delay in function execution.
    • Cancelation of the previous timer if called again within the specified delay.
    • Correct argument passing to the original function.
    • The default delay is used if not provided.
    • Multiple debounced functions can coexist without interfering with each other.

Current Behavior

No unit tests are currently implemented for the debounce utility function.

Reproducibility

  • This issue is reproducible.
  • This issue is not reproducible.

Steps to Reproduce

  1. Navigate to the _tests_/utils folder.
  2. Make sure no file or unit tests for debounce utility exists

Severity/Priority

  • Critical
  • High
  • Medium
  • Low

Checklist

  • I have read and followed the project's code of conduct.
  • I have searched for similar issues before creating this one.
  • I have provided all necessary information to understand and reproduce the issue.
  • I am willing to contribute to the resolution of this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions