Skip to content
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

Write Unit Test for toErrorMessage utility #157

Open
6 of 10 tasks
sunilk429 opened this issue Oct 9, 2024 · 0 comments
Open
6 of 10 tasks

Write Unit Test for toErrorMessage utility #157

sunilk429 opened this issue Oct 9, 2024 · 0 comments

Comments

@sunilk429
Copy link
Contributor

Issue Description

The toErrorMessage utility function is missing unit tests.

Expected Behavior

  • Unit tests should be added for the toErrorMessage utility to ensure:
    • It correctly extracts and returns the error message from the response object.
    • It returns a default error message when a custom message is not available.
    • It handles cases where the response or data is undefined.

Current Behavior

There are no unit tests currently implemented for the toErrorMessage utility function.

Reproducibility

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

You can reproduce the issue by navigating to the utils folder and verifying that there are no tests for the toErrorMessage function.

Steps to Reproduce

  1. Navigate to the _tests_/utils folder.
  2. Confirm the absence of test coverage for the toErrorMessage utility function.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant