nfischer / framily-tree

:beers: An interactive family tree for Theta Chi fraternity
https://nfischer.github.io/framily-tree/
MIT License
7 stars 11 forks source link

test: refactor and write tests for search function #46

Closed nfischer closed 3 months ago

nfischer commented 3 months ago

No change to logic. This is a pure refactor so that it's possible to test the findBrother() function. This adds basic test coverage for findBrother().

Test: npm test

codecov-commenter commented 3 months ago

Codecov Report

Attention: Patch coverage is 80.00000% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 80.17%. Comparing base (7fae7cd) to head (0a7a40a).

Files Patch % Lines
main.js 80.00% 3 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #46 +/- ## ========================================== + Coverage 72.72% 80.17% +7.44% ========================================== Files 2 2 Lines 121 116 -5 ========================================== + Hits 88 93 +5 + Misses 33 23 -10 ```

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