-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
When assertion count is incorrect, output the expected and actual values. #102
Comments
Confirmed. |
It seems simple to change the message in https://github.com/sindresorhus/ava/blob/04b3db5d96d6530d6b03c5f8f4c915dea16cd125/lib/test.js#L155, or would you prefer to use the stored |
The actual stored props should be used, but unsure why they're not. Maybe because we overwrite the stack in https://github.com/sindresorhus/ava/blob/04b3db5d96d6530d6b03c5f8f4c915dea16cd125/lib/test.js#L159. |
Ok, @sindresorhus: Here's the problem. Actual/expected are only included when no message is provided, see here and here. So we have to include that in the error message ourself. I'll submit a PR. |
Fixed in #376. |
+1, would like to see this fixed! |
I see that the actual count is recorded, but I'm not sure how to see it when running
ava
.https://github.com/sindresorhus/ava/blob/master/lib/test.js#L150-L158
The above is using using
master
withpower-assert
added.Similar output using the published version
The text was updated successfully, but these errors were encountered: