-
-
Notifications
You must be signed in to change notification settings - Fork 23.3k
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
Cleanup Tests and Warnings in them #1205
base: master
Are you sure you want to change the base?
Conversation
@distrustME is attempting to deploy a commit to the github readme stats Team on Vercel. A member of the Team first needs to authorize it. |
# Conflicts: # tests/renderStatsCard.test.js # tests/renderTopLanguages.test.js
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1205 +/- ##
=======================================
Coverage 98.02% 98.02%
=======================================
Files 27 27
Lines 6275 6275
Branches 549 549
=======================================
Hits 6151 6151
Misses 121 121
Partials 3 3 ☔ View full report in Codecov by Sentry. |
# Conflicts: # tests/renderTopLanguages.test.js # tests/utils.test.js
86aafe8
to
8bc69e7
Compare
# Conflicts: # tests/renderStatsCard.test.js
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Description
I've cleanuped the tests a bit and fixed some warnings. Jest only spitted out the warning that
toBeEmpty()
is deprecated andtoBeDOMElement()
should be used instead, but i also refactored other tests in this PR. MainlyrenderStatsCard.test.js
, because it had multiple duplicate code-fragments that should be refactored for faster readability.Code
expectColors()
to avoid duplicate code fragmentsTypes of changes
Reference