-
-
Notifications
You must be signed in to change notification settings - Fork 698
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
Improve error capturing #22
Comments
also, the message. or maybe i am misunderstanding how to use the library? when i have
why do i see "Expected null to be truthy" (or similar) instead of the helpful message i added? |
What test library are you use? |
me? i am actually using chai within code (to catch bugs), not a test framework. the message above was what was shown in the javascript console in chrome. (it's not a big deal, after lunch i was about to write my own assertion library instead...) |
Interesting, certainly not an expected use case (outside of a test framework). Anyway, here is an explanation in case you were wondering: Because of the other interfaces, the Making those custom errors for |
actual / expected support in a6447e8 will be in 0.5.0 release |
* master: don't switch act/exp Update the compiled verison. Add `assert.operator`. Notes on messages. #22 browser build have been test below tests browser build remove unnecessary fail export full support for actual/expected where relevant Assertion.assert support expected value clean up error
Comparison of Dates
Comparison of Dates
actual
andexpected
values upon construction of AssertionError so that testing libraries that check for this can report on it.The text was updated successfully, but these errors were encountered: