-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Fallback symbols are not covered by tests in Unicode-capable environments, including CI #94
Comments
Nice find @gibson042! |
Yes, but I may need help with this one. Is there a standard approach in these packages to mocking dependencies such that |
Good point. Not sure how @sindresorhus feels about this, but I personally try to avoid mocking whenever possible because:
In this situation, I think what'd be best would be to run the tests in CI in an environment where If changing |
I don't remember. It's definitely not the correct behavior. https://github.com/sindresorhus/is-unicode-supported/releases/tag/v2.0.0 |
Observed at #93 (comment) , the test for
replaceSymbols
verifies the absence of replacements (in a Unicode-capable environment) OR replacement with fallback symbols (in other environments), but not both. It would be good to update the tests for more complete coverage, or failing that to at least update CI to include less capable environments.The text was updated successfully, but these errors were encountered: