Skip to content
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

Print the planned and actual assertion count when incorrect. #667

Merged
merged 1 commit into from
Mar 22, 2016

Conversation

jamestalmage
Copy link
Contributor

Fixes #102

The assertion error already had expected and actual properties, but only the tap reporter displays those. Instead of modifying existing reporters to handle the special case of planned assertions, I took the easy way out and just dynamically generated the error message.

@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @ariporad, @timoxley and @sotojuan to be potential reviewers

@jamestalmage jamestalmage force-pushed the print-plan-expectation branch from c09cc49 to 6f71975 Compare March 22, 2016 05:37
@@ -11,6 +11,7 @@ var inspect = require('util').inspect;
var assert = require('./assert');
var enhanceAssert = require('./enhance-assert');
var globals = require('./globals');
var plur = require('plur');
Copy link
Member

Choose a reason for hiding this comment

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

Should be above relative require calls.

Wish we had a ESLint rule for this. (sindresorhus/project-ideas#62)

@jamestalmage jamestalmage force-pushed the print-plan-expectation branch from 6f71975 to 07febb2 Compare March 22, 2016 17:16
@novemberborn
Copy link
Member

:shipit:

jamestalmage added a commit that referenced this pull request Mar 22, 2016
Print the planned and actual assertion count when incorrect.
@jamestalmage jamestalmage merged commit d2e0c64 into avajs:master Mar 22, 2016
@jamestalmage jamestalmage deleted the print-plan-expectation branch March 22, 2016 22:14
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.

4 participants