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

test: use user.id instead of magic numbers #349

Merged
merged 1 commit into from
Nov 21, 2023

Conversation

ojeytonwilliams
Copy link
Contributor

Checklist:

The motivation is that I noticed that changing the order of the test users broke the tests. If we pass around user objects, the tests are both more robust and more declarative.

@ojeytonwilliams ojeytonwilliams requested a review from a team as a code owner November 21, 2023 10:41
Copy link
Member

@sidemt sidemt left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@sidemt sidemt merged commit b0a5ed1 into freeCodeCamp:main Nov 21, 2023
7 checks passed
@ojeytonwilliams ojeytonwilliams deleted the test/remove-magic-ids branch November 21, 2023 13:04
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.

2 participants