camicroscope / caMicroscope

Digital pathology image viewer with support for human/machine generated annotations and markups.
BSD 3-Clause "New" or "Revised" License
234 stars 285 forks source link

Sign up js file error handling and addition of sign Up test function #930

Closed gbengaoluwadahunsi closed 3 months ago

gbengaoluwadahunsi commented 3 months ago

Summary This pull request (PR) enhances the error handling of the sign-up JavaScript (JS) functionality and introduces a test function file using Jest for the JS file.

Motivation The motivation behind this PR is to improve the robustness and reliability of the sign-up feature by enhancing its error handling. By incorporating Jest and creating a dedicated test function file, the PR aims to ensure that the sign-up functionality functions correctly under various scenarios and edge cases. Additionally, by establishing a testing framework, future modifications to the sign-up feature can be confidently made without introducing regressions or breaking existing functionality.

Testing The PR has been thoroughly tested beyond the automatic hooks. The Jest test function file systematically validates the behavior of the sign-up JS file under different conditions, including both normal operation and error scenarios. This comprehensive testing approach helps to ensure that the sign-up functionality behaves as expected and handles errors gracefully.

Screenshot (248)