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

refactored src/posts/votes.js #162

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

evelyn-lo
Copy link

@evelyn-lo evelyn-lo commented Jan 23, 2025

resolves #158

codepath: src/posts/votes.js

break components within the condition statements into different variables (minReputationRequired, errorMessage)

@coveralls
Copy link

coveralls commented Jan 23, 2025

Pull Request Test Coverage Report for Build 12940550502

Details

  • 11 of 13 (84.62%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.002%) to 82.673%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/posts/votes.js 11 13 84.62%
Totals Coverage Status
Change from base Build 12896760049: 0.002%
Covered Lines: 22333
Relevant Lines: 25593

💛 - Coveralls

@evelyn-lo evelyn-lo changed the title refactor src/posts/votes.js refactored src/posts/votes.js Jan 24, 2025
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.

Refactor code in src/posts/votes.js
2 participants