Closed ojeytonwilliams closed 6 years ago
@ojeytonwilliams, sorry for the delay in reviewing this. Just checked it out and everything works great, even with a 0ms delay!
Congratulations on your first contribution to freeCodeCamp! Thank you for taking the time to fix this issue. We're all really looking forward to your next contribution :+1: :+1:
@scissorsneedfoodtoo No worries about the delay - reviewing things can't be an easy process! I'm just glad it worked in this case.
Description
Previously it was possible for the tests to fail if the timeout in componentDidMount() was too small - less than approximately 500ms. This change sets the state and checks that the component has been correctly rendered synchronously. As a result the timeout can be changed without issue.
Pre-Submission Checklist
dev
branch.fix/
,feature/
, ortranslate/
(e.g.fix/challenge-tests
)npm test
.npm run commit
to generate a conventional commit message. Learn more here: https://conventionalcommits.org/#why-use-conventional-commitsChecklist:
Closes freeCodeCamp/freeCodeCamp#17988