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

Endorse: Created unit tests to test the functionality of the endorsement feature #24

Closed
wants to merge 5 commits into from

Conversation

John-Crawshaw
Copy link

@John-Crawshaw John-Crawshaw commented Oct 9, 2024

Unit tests were added to ensure that when an admin upvotes a post, the post is then endorsed. Also included tests to ensure that when non-admins upvote a test that it is not endorsed.

These tests ensure that the function works as intended and is not hard coded for all posts.

Resolves: #23

Tests:
image

@John-Crawshaw John-Crawshaw added size: m Endorse features/changes related to admins endorsing a post labels Oct 9, 2024
@John-Crawshaw John-Crawshaw added this to the Sprint 2 milestone Oct 9, 2024
@John-Crawshaw John-Crawshaw self-assigned this Oct 9, 2024
@John-Crawshaw John-Crawshaw added the US2: endorse posts Features/changes related to the endorse posts element label Oct 9, 2024
Copy link

@Victor-Crawshaw Victor-Crawshaw left a comment

Choose a reason for hiding this comment

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

Looks good!

@John-Crawshaw John-Crawshaw deleted the endorse-tests-feature branch October 9, 2024 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Endorse features/changes related to admins endorsing a post size: m US2: endorse posts Features/changes related to the endorse posts element
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Endorse: add unit tests for endorsing posts
2 participants