-
Notifications
You must be signed in to change notification settings - Fork 4
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
BUG: Does not appear to handle all Utils.format() options like standard console. #34
Comments
Another example of this disparity is how the console behaves when you supply more arguments than what is in your format pattern:
In this case, the regular console does as described in documentation and outputs the extra
Here is what this library outputs:
Note how |
I'm not exactly positive, but looks like the problems may be due to how the library is using pretty-format. This does not put the arguments into a state that can be properly processed by |
I entirely removed the With
With
What purpose does forcibly running object arguments through |
I have a printf-style formatter using
console.log()
which works when going to regular console, but does not produce expected output when mocked with this library.Outputs:
However, once mocked with this library, the results are:
It seems the library has some issues with certain
Utils.format()
placeholders like"%j"
and"%o"
.The text was updated successfully, but these errors were encountered: