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

Merged Lue's changes from project 1 #24

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

ldlin1
Copy link

@ldlin1 ldlin1 commented Sep 18, 2024

Added my changes to src/topics/posts.js from Project 1.

Description from original pull request:

Refactored the function addEventStartEnd in src/topics/posts.js to reduce its cognitive complexity from 23 to the 15 allowed. This was done through the creation and use of the helper functions processPost, processLastPost, setEventStartEnd, and getNextPost

The refactored code passed the linter and test suite when run. Changes were also tested manually with console logs when interacting with the UI.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 10913232232

Details

  • 18 of 18 (100.0%) changed or added relevant lines in 1 file are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.006%) to 82.665%

Files with Coverage Reduction New Missed Lines %
src/meta/errors.js 1 76.74%
Totals Coverage Status
Change from base Build 10839551210: -0.006%
Covered Lines: 22327
Relevant Lines: 25587

💛 - Coveralls

@veronicabenedict veronicabenedict merged commit c0f5abd into f24 Sep 24, 2024
1 check passed
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