Skip to content

Stop testing wording of errors #412

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

Conversation

mathemaat
Copy link
Contributor

@mathemaat mathemaat commented Feb 2, 2025

The wording of the errors varies greatly between e.g. Chrome and Firefox. Since tests were (presumably) written by someone using Chrome, users using Firefox wouldn't be able to get the tests to work. In this PR, tests are modified in such a way that they still fail on the initial playground version, and succeed when copying over the solution, for both browsers.

For completeness sake, here is how Firefox and Chrome word the error:

9.1 Chrome: invalid time value, Firefox: invalid date
9.2 Chrome: Cannot read properties of null (reading 'toUpperCase'), Firefox: accountType is null
9.3 same as 9.2

P.S. this is my very first contribution to an open source project ever 🚀

Wording of errors varies greatly between e.g. Chrome and Firefox
Copy link
Member

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

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

Thank you!

@kentcdodds kentcdodds merged commit 6cb8440 into epicweb-dev:main Feb 2, 2025
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