Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve notifications - coverage tests #911

Merged
merged 81 commits into from
Oct 18, 2023

Conversation

ochan12
Copy link
Contributor

@ochan12 ochan12 commented Nov 21, 2022

Related issue

Coverage test #906

Context / Background

These were changes I made trying to hit the coverage target, but were completely unrelated to #906 issues. So in order to keep the changes smaller and more focused I created this new PR with tests.

What change is being introduced by this PR?

  • Reach 100% of coverage wherever I could
  • Fix small regex bug on month, on time-math.js
  • Added some functions like resetWindows() to execute on tests

How will this be tested?

With Jest automates test suites


  • I confirm I'm a native or fluent speaker of the language I'm translating to.

@ochan12
Copy link
Contributor Author

ochan12 commented Jan 16, 2023

Hey @tupaschoal this is going to be impossible to review. Are you okay with me splitting this into smaller pieces?

@tupaschoal
Copy link
Collaborator

Yes, please do, it will be easier for all :)

@tupaschoal
Copy link
Collaborator

@ochan12 are you willing to continue this PR? You had split it up to another smaller one, not sure how much is left here.

@ochan12
Copy link
Contributor Author

ochan12 commented Oct 11, 2023

@tupaschoal Yes, I'll update it

@ochan12 ochan12 force-pushed the improve-notifications-coverage-tests branch from 449840b to 2e597c6 Compare October 11, 2023 22:41
@ochan12 ochan12 force-pushed the improve-notifications-coverage-tests branch from 2e597c6 to 8c63f4c Compare October 11, 2023 22:46
@ochan12 ochan12 marked this pull request as ready for review October 11, 2023 23:01
@ochan12
Copy link
Contributor Author

ochan12 commented Oct 11, 2023

It is ready now @tupaschoal

Copy link
Collaborator

@tupaschoal tupaschoal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job, here's the summary of coverage change after your PR:

time-to-leave/js  73.13 -> 73.99
main-window.js    67.36 -> 67.70
menus.js          79.06 -> 78.82
time-balance.js   97.56 -> 100.0
time-math.js      78.72 -> 100.0
update-manager.js 00.00 -> 42.85
windows.js        26.92 -> 93.54
time-to-leave/src 78.83 -> 79.52
workday-waiver.js 76.65 -> 77.53

We got some to 100% and a huge increase on some others, which is great!

@tupaschoal tupaschoal merged commit 237e6b3 into thamara:main Oct 18, 2023
9 checks passed
@tupaschoal
Copy link
Collaborator

\changelog-update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants