TheAlgorithms / JavaScript

Algorithms and Data Structures implemented in JavaScript for beginners, following best practices.
https://the-algorithms.com/language/javascript
GNU General Public License v3.0
32.19k stars 5.52k forks source link

fix: `throw` form `DateToDay` #1628

Closed vil02 closed 7 months ago

vil02 commented 7 months ago

Open in Gitpod know more

Describe your change:

Similar to #1624 - errors should be thrown not returned. Additionally, this PR reorganizes the tests.

Checklist:

codecov-commenter commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 83.91%. Comparing base (83b4dd8) to head (e69ee1b).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1628 +/- ## ========================================== + Coverage 83.89% 83.91% +0.02% ========================================== Files 377 377 Lines 19736 19736 Branches 2916 2919 +3 ========================================== + Hits 16558 16562 +4 + Misses 3178 3174 -4 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.