-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Issue Description
The toErrorMessage utility function is missing unit tests.
Expected Behavior
- Unit tests should be added for the
toErrorMessageutility 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
- Navigate to the
_tests_/utilsfolder. - Confirm the absence of test coverage for the
toErrorMessageutility 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels