thamara / time-to-leave

Log work hours and get notified when it's time to leave the office and start to live.
http://timetoleave.app
GNU General Public License v3.0
455 stars 267 forks source link

Switching most expect calls to node assert #1057

Closed araujoarthur0 closed 8 months ago

araujoarthur0 commented 8 months ago

Related issue

Helps #1037

Context / Background

As described in #1054, jest no longer works with electron and we'll be switching to mocha. Mocha does not have its own assertion library, so we'll be using node's "assert" library.

What change is being introduced by this PR?

Replacing all possible "expect" calls from jest with the correspondent ones from "assert", so the changes in the next PR are smaller.

How will this be tested?

Tests are passing in the same way.

codecov[bot] commented 8 months ago

Codecov Report

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

Comparison is base (1227117) 80.00% compared to head (f47a64a) 80.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1057 +/- ## ======================================= Coverage 80.00% 80.00% ======================================= Files 20 20 Lines 1270 1270 Branches 191 191 ======================================= Hits 1016 1016 Misses 254 254 ```

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