freeCodeCamp / publish

> Content backend platform for /news
https://publish.freecodecamp.org
BSD 3-Clause "New" or "Revised" License
10 stars 9 forks source link

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

Closed ojeytonwilliams closed 7 months ago

ojeytonwilliams commented 7 months ago

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.