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

Cleanup Tests and Warnings in them #1205

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

Morphclue
Copy link
Contributor

@Morphclue Morphclue commented Jul 25, 2021

Description

I've cleanuped the tests a bit and fixed some warnings. Jest only spitted out the warning that toBeEmpty() is deprecated and toBeDOMElement() should be used instead, but i also refactored other tests in this PR. Mainly renderStatsCard.test.js, because it had multiple duplicate code-fragments that should be refactored for faster readability.

Code

  • Exchanged deprecated method
  • Added expectColors() to avoid duplicate code fragments
  • Removed unused imports
  • Removed unused variables

Types of changes

  • Enhancement
  • Refactor

Reference

@vercel
Copy link

vercel bot commented Jul 25, 2021

@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
Copy link

codecov bot commented Apr 30, 2022

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7d4c49b) 98.02% compared to head (80c7163) 98.02%.

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.
📢 Have feedback on the report? Share it here.

@rickstaa rickstaa added the enhancement New feature or request. label May 3, 2022
# Conflicts:
#	tests/renderTopLanguages.test.js
#	tests/utils.test.js
@rickstaa rickstaa force-pushed the master branch 2 times, most recently from 86aafe8 to 8bc69e7 Compare January 21, 2023 16:47
@rickstaa rickstaa added the ⭐ top pull request Top pull request. label Jun 15, 2023
@github-actions github-actions bot added ⭐ top pull request Top pull request. and removed ⭐ top pull request Top pull request. labels Jun 15, 2023
@github-actions github-actions bot added ⭐ top pull request Top pull request. and removed ⭐ top pull request Top pull request. labels Aug 13, 2023
@github-actions github-actions bot removed the ⭐ top pull request Top pull request. label Aug 22, 2023
@github-actions github-actions bot added stats-card Feature, Enhancement, Fixes related to stats the stats card. repo-card Issues related to the pin/repo card. labels Jan 4, 2024
# Conflicts:
#	tests/renderStatsCard.test.js
Copy link

vercel bot commented Dec 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
github-readme-stats ✅ Ready (Inspect) Visit Preview Dec 9, 2024 6:06pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request. repo-card Issues related to the pin/repo card. stats-card Feature, Enhancement, Fixes related to stats the stats card.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants